-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
56 lines (52 loc) · 1.08 KB
/
docker-compose.yaml
File metadata and controls
56 lines (52 loc) · 1.08 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
services:
backend:
build:
context: ./backend
container_name: evsy-backend
restart: always
env_file:
- .env
ports:
- "127.0.0.1:8000:8000"
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/docs"]
interval: 10s
timeout: 5s
retries: 5
frontend:
build:
context: ./frontend
args:
VITE_API_URL: ${VITE_API_URL}
VITE_ENV: ${VITE_ENV}
container_name: evsy-frontend
restart: always
env_file:
- .env
ports:
- "127.0.0.1:3000:80"
depends_on:
backend:
condition: service_healthy
db:
image: postgres:15
container_name: evsy-db
restart: always
environment:
POSTGRES_USER: evsy
POSTGRES_PASSWORD: evsy
POSTGRES_DB: evsy
volumes:
- postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "evsy"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: