-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (60 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
65 lines (60 loc) · 1.19 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
58
59
60
61
62
63
64
65
name: devbin
services:
devbin_frontend:
build:
context: frontend/.
ports:
- "3000:3000"
env_file:
- .env
profiles: ["dev_frontend"]
develop:
watch:
- path: ./src
target: /src
action: sync
- path: ./package.json
action: rebuild
networks:
- devbin_network
devbin:
env_file:
- .env
build:
context: backend/.
ports:
- "8000:8000"
volumes:
- ./files:/app/files
depends_on:
devbin_db:
condition: service_healthy
profiles: ["dev_backend"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${APP_PORT:-8000}/health"]
interval: 15s
timeout: 5s
start_period: 3s
retries: 3
networks:
- devbin_network
devbin_db:
env_file:
- .env
image: postgres:16
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- devbin_network
volumes:
postgres_data:
networks:
devbin_network:
driver: bridge