-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.19 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
services:
backend:
build: ./backend
container_name: ceppa-backend
ports:
- "${BACKEND_PORT:-8000}:8000"
volumes:
- ./backend:/app
- ./data/user_files:/app/user_files
env_file:
- envs/${ENV_MODE}.env
depends_on:
- db
restart: unless-stopped
networks:
ceppa_network:
aliases:
- backend
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
frontend:
build: ./frontend
container_name: ceppa-frontend
ports:
- "${FRONTEND_PORT:-5173}:5173"
volumes:
- ./frontend:/app
- /app/node_modules
restart: unless-stopped
environment:
- VITE_API_URL=http://localhost:${BACKEND_PORT:-8000}
networks:
ceppa_network:
aliases:
- frontend
command: npm run dev -- --host
db:
image: postgres:15-alpine
container_name: ceppa-db
env_file:
- envs/${ENV_MODE}.env
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
networks:
ceppa_network:
aliases:
- db
volumes:
postgres_data:
networks:
ceppa_network:
driver: bridge