forked from beriberikix/zephyr-simulator-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.12 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
services:
# Backend API server (Go + PocketBase)
backend:
build: .
container_name: zephyr-backend
ports:
- "8080:8080"
environment:
PORT: "8080"
BASE_IMAGE_URL: "zephyr-emulator:latest"
RUNTIME_NAME: "runsc"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data
networks:
- zephyr-network
restart: unless-stopped
# Frontend (React + Vite, served via Caddy)
frontend:
image: node:20-alpine
container_name: zephyr-frontend
working_dir: /app
volumes:
- ./web:/app
ports:
- "5173:5173"
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
networks:
- zephyr-network
restart: unless-stopped
# Reverse proxy (Caddy)
caddy:
image: caddy:2.7-alpine
container_name: zephyr-caddy
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
networks:
- zephyr-network
restart: unless-stopped
networks:
zephyr-network:
driver: bridge
volumes:
caddy_data:
caddy_config: