-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
45 lines (42 loc) · 816 Bytes
/
Copy pathcompose.yaml
File metadata and controls
45 lines (42 loc) · 816 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- ./backend/.env
ports:
- "5000:5000"
depends_on:
database:
condition: service_healthy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
env_file:
- ./frontend/.env
ports:
- "5173:5173"
- "4173:4173"
depends_on:
- backend
database:
image: postgres:16-alpine
env_file:
- ./config/database.env
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}",
]
interval: 5s
timeout: 5s
retries: 10
volumes:
postgres-data: