-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (46 loc) · 1.4 KB
/
docker-compose.yml
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
services:
agent:
image: ghcr.io/circlesabound/fctrl/agent:latest
volumes:
- type: bind
source: ./data
target: /app/data
environment:
- AGENT_WS_PORT
- FACTORIO_PORT
- FACTORIO_RCON_PORT
- RUST_LOG=${LOG_LEVEL}
ports:
- '127.0.0.1:${AGENT_WS_PORT}:${AGENT_WS_PORT}/tcp'
- '${FACTORIO_PORT}:${FACTORIO_PORT}/udp'
- '${FACTORIO_RCON_PORT}:${FACTORIO_RCON_PORT}/tcp'
stop_signal: SIGINT
mgmt-server:
image: ghcr.io/circlesabound/fctrl/mgmt-server:latest
volumes:
- type: bind
source: ./db
target: /app/db
environment:
- AGENT_ADDR=ws://agent:${AGENT_WS_PORT}
- AUTH_PROVIDER
- AUTH_DISCORD_ADMIN_USER_ID
- DISCORD_BOT_TOKEN
- DISCORD_ALERT_CHANNEL_ID
- DISCORD_CHAT_LINK_CHANNEL_ID
- DISCORD_GUILD_ID
- DISCORD_INTEGRATION
- DISCORD_OAUTH2_CLIENT_ID
- DISCORD_OAUTH2_CLIENT_SECRET
- MGMT_SERVER_WS_ADDRESS=${MGMT_SERVER_BIND}
- MGMT_SERVER_WS_PORT
- ROCKET_ADDRESS=${MGMT_SERVER_BIND}
- ROCKET_LIMITS={bytes="2 MiB"}
- ROCKET_LOG_LEVEL=critical
- ROCKET_PORT=${MGMT_SERVER_PORT}
- RPROXY_ENABLED
- RUST_LOG=${LOG_LEVEL}
ports:
- '${MGMT_SERVER_BIND}:${MGMT_SERVER_PORT}:${MGMT_SERVER_PORT}/tcp'
- '${MGMT_SERVER_BIND}:${MGMT_SERVER_WS_PORT}:${MGMT_SERVER_WS_PORT}/tcp'
stop_signal: SIGINT