-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (53 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
57 lines (53 loc) · 1.06 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
---
services:
web:
build:
context: .
dockerfile: Dockerfile
target: development
args:
UID: "${UID}"
GIT_COMMIT: "${COMMIT_SHA}"
command: python manage.py runserver 0.0.0.0:8000
user: "${UID}:${UID}"
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- db
- asset_builder
volumes:
- ./:/app
- venv:/app/.venv
- playwright_browsers:/app/browsers
restart: unless-stopped
asset_builder:
build:
context: .
dockerfile: Dockerfile
target: asset_builder
command: npm run watch
volumes:
- ./:/app
- node_modules:/app/node_modules
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:
venv:
playwright_browsers:
node_modules: