-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
81 lines (76 loc) · 1.57 KB
/
compose.yaml
File metadata and controls
81 lines (76 loc) · 1.57 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
server:
build:
context: ./server
dockerfile: ./Dockerfile
volumes:
- ../uploads:/server/uploads
ports:
- "8000:8000"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 40s
environment:
- DATABASE_URL=postgresql+asyncpg://inclearn:inclearn@db:5432/inclearn
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: rebuild
path: ./server/
target: /server
- action: rebuild
path: ./server/uv.lock
dns:
- 8.8.8.8
- 8.8.4.4
env_file:
- ./server/.env
networks:
- network
web:
build:
context: ./web
dockerfile: ./Dockerfile
args:
NEXT_PUBLIC_BACKEND_URL: https://localhost:8000/api/v1
env_file:
- ./web/.env
depends_on:
- server
ports:
- "3000:3000"
dns:
- 8.8.8.8
- 8.8.4.4
networks:
- network
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: inclearn
POSTGRES_PASSWORD: inclearn
POSTGRES_DB: inclearn
healthcheck:
test: ["CMD-SHELL", "pg_isready -U inclearn -d inclearn"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql
networks:
- network
volumes:
db_data:
driver: local
networks:
network:
driver: bridge