-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (44 loc) · 1 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
services:
db:
image: postgres
environment:
- POSTGRES_USER=haemoUser
- POSTGRES_PASSWORD=Aht123786
- POSTGRES_DB=haemoSupport
redis:
image: redis:alpine
celery:
build: .
command: sh -c "celery -A haemosupport worker -l info"
env_file:
- ./env.txt
depends_on:
db:
condition: service_started
redis:
condition: service_started
celery-beat:
build: .
env_file:
- ./env.txt
command: sh -c "celery -A haemosupport beat -l info"
depends_on:
db:
condition: service_started
redis:
condition: service_started
web:
# image: 156926091891.dkr.ecr.us-west-2.amazonaws.com/haemo-support-backend:latest
build: .
command: >
sh -c "python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
env_file:
- ./env.txt
depends_on:
db:
condition: service_started
redis:
condition: service_started