forked from unicef/iogt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
57 lines (52 loc) · 1.4 KB
/
docker-compose.test.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
version: '3.5'
services:
django:
build:
context: ./
dockerfile: Dockerfile.dev
environment:
DB_NAME: iogt
DB_USER: iogt
DB_PASSWORD: iogt
DB_HOST: db
DB_PORT: 5432
DJANGO_SETTINGS_MODULE: iogt.settings.test
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 runserver 0.0.0.0:8000"
volumes:
- ./:/app/
ports:
- "8000:8000"
depends_on:
- elasticsearch
- db
db:
image: postgres:alpine
restart: unless-stopped
environment:
POSTGRES_USER: iogt
POSTGRES_PASSWORD: iogt
POSTGRES_DB: iogt
volumes:
- iogt_postgres_data:/var/lib/postgresql/data/
ports:
- 5432:5432
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.12.1'
environment:
- discovery.type=single-node
volumes:
- iogt_elasticsearch_data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
volumes:
iogt_postgres_data:
iogt_elasticsearch_data: