forked from MWATelescope/mwa_trigger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
53 lines (49 loc) · 1.05 KB
/
docker-compose.dev.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
version: "3.8"
services:
db:
image: postgres:12.18
container_name: db-container
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- .env
ports:
- 5432:5432
networks:
- tracet-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
retries: 5
start_period: 30s
timeout: 5s
web:
build:
context: .
dockerfile: Dockerfile
args:
SYSTEM_ENV: DEVELOPMENT
container_name: web-container
# restart: always
volumes:
- .:/app
ports:
- "8000:8000"
env_file:
- .env
command: [
"sh",
"-c",
"python manage.py runserver 0.0.0.0:8000 & sleep 5s && echo 'Starting'
&& tmux new -s kafka -d './kafka_daemon.sh'
&& tmux new -s comet -d 'python3.10 twistd_comet_wrapper.py' && wait",
]
depends_on:
- db
networks:
- tracet-network
volumes:
postgres_data:
networks:
tracet-network:
driver: bridge