This repository was archived by the owner on Sep 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
115 lines (104 loc) · 2.66 KB
/
docker-compose.yml
File metadata and controls
115 lines (104 loc) · 2.66 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3.7'
services:
db1:
image: postgres:11.8
environment:
- POSTGRES_PASSWORD=postgres
db2:
image: postgres:11.8
environment:
- POSTGRES_PASSWORD=postgres
redis1:
restart: always
image: redis:2.8
dynamodb:
image: peopleperhour/dynamodb
sqs:
image: s12v/elasticmq
restart: always
ports:
- "9324:9324"
volumes:
- ./sqs_local:/etc/elasticmq
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
environment:
# Remove this when moving to several nodes, if ever
- discovery.type=single-node
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes:
- ./staticfiles:/www/static
depends_on:
- web
web:
build:
context: ./server/
volumes:
- ./logs:/var/app/logs
- ./server:/var/app
- ./staticfiles:/www/static
ports:
- "5000:8000"
command: /var/app/runserver.sh
depends_on:
- db1
- db2
- redis1
- dynamodb
- sqs
- es
environment:
- DJANGO_SETTINGS_MODULE=config.settings.docker
- DJANGO_ENV_FILE=.docker.env
- DJANGO_SECRET_KEY=stage-dummy-key1
- PRODUCTION=False
- DOCKER=True
- DEBUG=True
- DATABASE_DEFAULT_URL=postgres://postgres:postgres@db1/postgres
- DATABASE_STREAMDATA_URL=postgres://postgres:postgres@db2/postgres
- SEARCH_URL=es:9200
- REDIS_HOSTNAME=redis1
- REDIS_PORT=6379
- USE_WORKER=True
- DYNAMODB_URL=http://dynamodb@dynamodb:8000/dynamodb
- SQS_URL=http://sqs:9324
- TWILIO_FROM_NUMBER=+14432724468
- TWILIO_ACCOUNT_SID=twilio-dummy
- TWILIO_AUTH_TOKEN=twilio-dummy
worker:
build:
context: ./server/
volumes:
- ./logs:/var/app/logs
- ./server:/var/app
- ./staticfiles:/www/static
command: /usr/bin/supervisord -c /var/app/supervisord.conf
depends_on:
- db1
- db2
- redis1
- dynamodb
- sqs
- es
environment:
- USE_WORKER=True
- DJANGO_SETTINGS_MODULE=config.settings.docker
- DJANGO_ENV_FILE=.docker.env
- DJANGO_SECRET_KEY=stage-dummy-key1
- PRODUCTION=False
- DOCKER=True
- DEBUG=True
- DATABASE_DEFAULT_URL=postgres://postgres:postgres@db1/postgres
- DATABASE_STREAMDATA_URL=postgres://postgres:postgres@db2/postgres
- SEARCH_URL=es:9200
- REDIS_HOSTNAME=redis1
- REDIS_PORT=6379
- DYNAMODB_URL=http://dynamodb@dynamodb:8000/dynamodb
- SQS_URL=http://sqs:9324
- TWILIO_FROM_NUMBER=+14432724468
- TWILIO_ACCOUNT_SID=twilio-dummy
- TWILIO_AUTH_TOKEN=twilio-dummy