forked from unicef/iogt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (64 loc) · 1.76 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.5'
services:
django:
build:
context: ./
dockerfile: Dockerfile.dev
container_name: dc01
environment:
DB_NAME: postgres
DB_USER: postgres
DB_PASSWORD: iogt
DB_HOST: db
DB_PORT: 5432
DJANGO_SETTINGS_MODULE: iogt.settings.docker_compose_dev
COMMIT_HASH: asdfghjkl
RAPIDPRO_BOT_USER_ID: 1
RAPIDPRO_BOT_USER_USERNAME: rapidpro
RAPIDPRO_BOT_USER_PASSWORD: 1234
WAGTAILTRANSFER_SECRET_KEY: wagtailtransfer-secret-key
WAGTAILTRANSFER_SOURCE_NAME: iogt_global
WAGTAILTRANSFER_SOURCE_BASE_URL: https://example.com/wagtail-transfer/
WAGTAILTRANSFER_SOURCE_SECRET_KEY: wagtailtransfer-source-secret-key
BASE_URL: 'http://localhost:8000'
command: bash -c "python manage.py load_po_files && python manage.py compilemessages && python manage.py runserver 0.0.0.0:8000"
volumes:
- ./:/app/
ports:
- "8000:8000"
depends_on:
- elasticsearch
- db
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.12.1'
container_name: ec01
environment:
- discovery.type=single-node
volumes:
- es-data01:/usr/share/elasticsearch/data
ports:
- "9200:9200"
db:
image: postgres:alpine
container_name: pc01
restart: unless-stopped
environment:
POSTGRES_PASSWORD: iogt
volumes:
- /var/lib/postgresql/data
- ./initdb.d:/docker-entrypoint-initdb.d
ports:
- 5432:5432
legacy-db:
image: postgres:alpine
container_name: lc01
restart: unless-stopped
environment:
POSTGRES_PASSWORD: iogt
volumes:
- /var/lib/postgresql/data
- ./legacy-initdb.d:/docker-entrypoint-initdb.d
ports:
- 54321:5432
volumes:
es-data01: