-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (40 loc) · 948 Bytes
/
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
version: '3.6'
services:
db:
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=dathena
ports:
- "54333:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
app:
build:
context: .
ports:
- "8000:8000"
volumes:
- ./app:/app
restart:
always
command: >
sh -c "source ./script/wait-for-postgres.sh db
&& source ./script/entrypoint.sh"
depends_on:
- db
- rabbitmq
# - celery_worker
rabbitmq:
image: rabbitmq:3.7-alpine
# can't get this to work
# celery_worker:
# <<: *app
# command: celery -A app worker --loglevel=info
# ports: []
# depends_on:
# - rabbitmq
# - db
volumes:
postgres_data: