-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 934 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (42 loc) · 934 Bytes
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
---
services:
web:
build:
context: .
dockerfile: Dockerfile
target: development
command: python manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- db
volumes:
- ./lung_cancer_screening:/app/lung_cancer_screening
restart: unless-stopped
asset_builder:
build:
context: .
dockerfile: Dockerfile
target: asset_builder
command: npm run watch
volumes:
- ./lung_cancer_screening/assets/compiled:/app/lung_cancer_screening/assets/compiled
db:
image: postgres:15-alpine
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
redis_data: