-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
63 lines (59 loc) · 1.34 KB
/
compose.yml
File metadata and controls
63 lines (59 loc) · 1.34 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
services:
# Reverse proxy
caddy:
image: caddy
restart: unless-stopped
ports:
- "${FUIZ_PORT:-80}:80"
- "${FUIZ_TLS_PORT:-443}:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
env_file: .env
depends_on:
- web
- game-server
- corkboard
# SvelteKit frontend
web:
image: registry.gitlab.com/fuiz/website:latest
restart: unless-stopped
env_file: .env
environment:
- PORT=3000
- DATABASE_URL=/data/fuiz.db
- STORAGE_PATH=/data/storage
- KV_DATABASE_URL=/data/kv.db
expose:
- "3000"
volumes:
- web-data:/data
# Game server (actix-web)
game-server:
image: registry.gitlab.com/fuiz/game-backend/fuiz-server:latest
restart: unless-stopped
env_file: .env
environment:
- FUIZ_HOSTNAME=0.0.0.0
- FUIZ_PORT=8080
expose:
- "8080"
# Image storage server (actix-web)
corkboard:
image: registry.gitlab.com/fuiz/game-backend/corkboard-server:latest
restart: unless-stopped
env_file: .env
environment:
- CORKBOARD_HOSTNAME=0.0.0.0
- CORKBOARD_PORT=5040
- CORKBOARD_STORAGE_DIR=/data
expose:
- "5040"
volumes:
- corkboard-data:/data
volumes:
caddy-data:
caddy-config:
corkboard-data:
web-data: