Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
86 lines (83 loc) · 2.61 KB
/
Copy pathcompose.yaml
File metadata and controls
86 lines (83 loc) · 2.61 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
79
80
81
82
83
84
85
86
services:
obbyircd:
build:
context: .
dockerfile: ./docker/Dockerfile
# renovate: datasource=docker depName=obbyworld/obbyircd versioning=docker
image: ${OBBYIRCD_IMAGE:-obbyworld/obbyircd:6.2.8.3}
container_name: obbyircd
restart: unless-stopped
expose:
- "8080"
ports:
- "${SSL_HOST_PORT:-6697}:${SSL_PORT:-6697}"
volumes:
- ${CONF_BIND:-obbyircd_conf}:/home/obbyircd/obby/conf
- ${DATA_BIND:-obbyircd_data}:/home/obbyircd/obby/data
- ${LOGS_BIND:-obbyircd_logs}:/home/obbyircd/obby/logs
- ${TLS_BIND:-obbyircd_tls}:/home/obbyircd/obby/tls
- ${CUSTOM_MODULES_BIND:-obbyircd_custom_modules}:/home/obbyircd/obby/custom-modules
- ${VOICE_BRIDGE_BIND:-obbyircd_voice_bridge}:/run/obbyirc
environment:
WS_PORT: "${WS_PORT:-8080}"
SSL_PORT: "${SSL_PORT:-6697}"
VOICE_BRIDGE_SOCKET: /run/obbyirc/voice.sock
env_file:
- path: .env
required: false
healthcheck:
test: ["CMD-SHELL", "nc -z localhost $${WS_PORT:-8080}"]
interval: 5s
timeout: 5s
retries: 6
start_period: 30s
# hosted-backend is built and published from its own repo:
# https://github.com/obbyworld/hosted-backend
# We just pull the published image here.
obby-api:
image: ${OBBY_API_IMAGE:-obbyworld/obby-api:latest}
container_name: obby-api
restart: unless-stopped
depends_on:
obbyircd:
condition: service_healthy
expose:
- "8080"
ports:
- "${TURN_PORT:-3478}:3478/udp"
volumes:
- ${OBBY_API_DATA_BIND:-obby_api_data}:/app/data
- ${OBBY_API_IMAGES_BIND:-obby_api_images}:/app/images
- ${VOICE_BRIDGE_BIND:-obbyircd_voice_bridge}:/run/obbyirc
environment:
PORT: "8080"
VOICE_BRIDGE_SOCKET: /run/obbyirc/voice.sock
VOICE_TURN_SECRET: ${VOICE_TURN_SECRET}
VOICE_PUBLIC_IP: ${VOICE_PUBLIC_IP}
VOICE_TURN_PORT: "${TURN_PORT:-3478}"
VOICE_MAX_ROOM: "${VOICE_MAX_ROOM:-25}"
env_file:
- path: .env
required: false
# Web client. Source: https://github.com/obbyworld/obby
# Opt-in via `--profile frontend` (or set COMPOSE_PROFILES=frontend in .env)
# so backend-only devs can `docker compose up` without pulling the SPA.
obby:
image: ${OBBY_WEB_IMAGE:-obbyworld/obby:latest}
container_name: obby-web
restart: unless-stopped
profiles: ["frontend"]
expose:
- "80"
env_file:
- path: .env
required: false
volumes:
obbyircd_conf:
obbyircd_data:
obbyircd_logs:
obbyircd_tls:
obbyircd_custom_modules:
obbyircd_voice_bridge:
obby_api_data:
obby_api_images: