forked from SuperCoopBerlin/tapir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.92 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.9"
services:
openldap:
image: "osixia/openldap"
environment:
LDAP_ORGANISATION: "SuperCoop Berlin"
LDAP_DOMAIN: "supercoop.de"
LDAP_ADMIN_PASSWORD: "admin"
LDAP_READONLY_USER: "true"
ports:
- "389:389"
volumes:
- ./ldap_testdata.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-testdata.ldif
# Required so that the container doesn't modify the testdata ldif
command: --copy-service
web:
build: .
command: bash -c "poetry install && poetry run python manage.py runserver_plus 0.0.0.0:8000"
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- openldap
- db
db:
image: postgres:13
environment:
- POSTGRES_DB=tapir
- POSTGRES_PASSWORD=tapir
- POSTGRES_USER=tapir
#odoo:
# image: "odoo:12"
# depends_on:
# - odoo_db
# ports:
# - "8069:8069"
# volumes:
# - ./testdata/odoo/filestore:/var/lib/odoo/filestore
# environment:
# - HOST=odoo_db
# command: "--database=odoo"
#odoo_db:
# image: postgres:10
# volumes:
# - ./testdata/odoo/odoo.sql:/docker-entrypoint-initdb.d/odoo.sql
# environment:
# - POSTGRES_DB=odoo
# - POSTGRES_PASSWORD=odoo
# - POSTGRES_USER=odoo