-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
78 lines (73 loc) · 1.55 KB
/
compose.yml
File metadata and controls
78 lines (73 loc) · 1.55 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
spacetimedb:
image: clockworklabs/spacetime:v2.0.5
command: ["start"]
ports:
- "3020:3000"
volumes:
- stdb-data:/home/spacetime/.local/share/spacetime/data
- stdb-keys:/etc/spacetimedb
- ./server:/module:ro
environment:
- SPACETIMEDB_LOG_LEVEL=info
healthcheck:
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:3000/ || [ $? -eq 22 ]"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- app-network
# Production frontend (built, port 3022)
nuxt-prod:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "3022:3000"
environment:
- HOST=0.0.0.0
- PORT=3000
depends_on:
spacetimedb:
condition: service_healthy
restart: unless-stopped
networks:
- app-network
# API service (Fastify — messages, uploads, search — port 3025)
api:
build:
context: ./api
dockerfile: Dockerfile
ports:
- "3025:3000"
env_file:
- ./api/.env
environment:
- PORT=3000
restart: unless-stopped
networks:
- app-network
# FlaviBot
bot:
build:
context: .
dockerfile: bot/Dockerfile
env_file:
- ./bot/.env
environment:
- SPACETIMEDB_URI=ws://spacetimedb:3000
volumes:
- bot-data:/data
depends_on:
spacetimedb:
condition: service_healthy
restart: unless-stopped
networks:
- app-network
volumes:
stdb-data:
stdb-keys:
bot-data:
networks:
app-network: