forked from unicef/iogt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
58 lines (53 loc) · 1.39 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
58
version: '3.5'
services:
django:
build:
context: ./
dockerfile: Dockerfile.dev
environment:
BASE_URL: 'http://localhost:8000'
DB_CONN_MAX_AGE: '600'
DB_HOST: db
DB_NAME: iogt
DB_PASSWORD: iogt
DB_PORT: '5432'
DB_USER: iogt
DB_SSL_MODE: allow
DEBUG: enable
DJANGO_SETTINGS_MODULE: iogt.settings.test
COMMIT_HASH: asdfghjkl
SECRET_KEY: secret_key
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
command: 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: