-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
67 lines (64 loc) · 1.46 KB
/
docker-compose.dev.yml
File metadata and controls
67 lines (64 loc) · 1.46 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
66
67
services:
postgres:
image: postgres:16
container_name: keepler-postgres
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_DB: keepler
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
args:
UID: ${UID:-}
GID: ${GID:-}
container_name: keepler-backend
ports:
- "${BACKEND_PORT}:8000"
environment:
RUST_BACKTRACE: full
volumes:
- ./backend:/app
- backend_build_cache:/app/target
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 10s
timeout: 5s
retries: 5
tty: true
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
args:
UID: ${UID:-}
GID: ${GID:-}
container_name: keepler-frontend
ports:
- "${FRONTEND_PORT}:5173"
volumes:
- ./frontend:/app
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "-e", "await fetch('http://localhost:5173/')"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
backend_build_cache: