-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 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
version: '3.8'
services:
# Backend API server
backend:
build:
context: .
dockerfile: apps/server/Dockerfile
container_name: marionette-backend
ports:
- "8787:8787"
environment:
- NODE_ENV=production
- PORT=8787
- DATABASE_URL=sqlite:/app/db/marionette.db
volumes:
- ./db:/app/db
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8787/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- marionette-network
# Frontend web dashboard
frontend:
build:
context: .
dockerfile: apps/web/Dockerfile
container_name: marionette-frontend
ports:
- "5173:80"
environment:
- VITE_API_URL=http://localhost:8787
- VITE_WS_URL=ws://localhost:8787
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
- marionette-network
networks:
marionette-network:
driver: bridge
volumes:
db-data:
driver: local