forked from imDarshanGK/AI-dev-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 1012 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (42 loc) · 1012 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
46
47
services:
backend:
build: .
container_name: ai-dev-backend
ports:
- "8000:8000"
env_file:
- .env
volumes:
- ./backend:/app/backend
command: uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 --reload
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz/live', timeout=3).read()"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
depends_on:
- db
frontend:
image: nginx:alpine
container_name: ai-dev-frontend
ports:
- "3000:80"
volumes:
- ./frontend:/usr/share/nginx/html:ro
depends_on:
- backend
db:
image: postgres:16
container_name: ai-dev-db
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: aidevdb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: