-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
135 lines (126 loc) · 3.59 KB
/
docker-compose.yml
File metadata and controls
135 lines (126 loc) · 3.59 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
services:
nginx_proxy_manager:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
# These ports are in format <host-port>:<container-port>
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
# Add any other Stream port you want to expose
# - '21:21' # FTP
# Uncomment the next line if you uncomment anything in the section
# environment:
# Uncomment this if you want to change the location of
# the SQLite DB file within the container
# DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
- ./data:/data
- /etc/letsencrypt:/etc/letsencrypt
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DOCKER_API_VERSION=1.52
- WATCHTOWER_POLL_INTERVAL=300 # Check for updates every 5 minutes
- WATCHTOWER_CLEANUP=true # Remove old images after update
- WATCHTOWER_LABEL_ENABLE=true # Only watch services with a specific label
restart: unless-stopped
game_test_server:
build: .
labels:
- com.centurylinklabs.watchtower.enable=true
environment:
- GAME_SCRIPT=defaultScript.ts
- GAME_TICKRATE=40 # Higher tickrate for vehicles
- NODE_ENV=production
- FRONTEND_URL=https://www.notblox.online
ports:
- '8001:8001'
volumes:
- /etc/letsencrypt:/etc/letsencrypt
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
game_obby_parkour:
image: ghcr.io/iercann/notblox-game-server:latest
labels:
- com.centurylinklabs.watchtower.enable=true
environment:
- GAME_SCRIPT=parkourScript.ts
- GAME_TICKRATE=20 # Default tickrate
- NODE_ENV=production
- FRONTEND_URL=https://www.notblox.online
ports:
- '8002:8001'
volumes:
- /etc/letsencrypt:/etc/letsencrypt
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
game_football:
image: ghcr.io/iercann/notblox-game-server:latest
labels:
- com.centurylinklabs.watchtower.enable=true
environment:
- GAME_SCRIPT=footballScript.ts
- GAME_TICKRATE=20
- NODE_ENV=production
- FRONTEND_URL=https://www.notblox.online
ports:
- '8003:8001'
volumes:
- /etc/letsencrypt:/etc/letsencrypt
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
game_pet_simulator:
image: ghcr.io/iercann/notblox-game-server:latest
labels:
- com.centurylinklabs.watchtower.enable=true
environment:
- GAME_SCRIPT=petSimulatorScript.ts
- GAME_TICKRATE=20
- NODE_ENV=production
- FRONTEND_URL=https://www.notblox.online
ports:
- '8004:8001'
volumes:
- /etc/letsencrypt:/etc/letsencrypt
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
monitor-logs:
build: ./monitor
environment:
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
- DOCKER_GATEWAY=https://172.17.0.1
- CHECK_INTERVAL=10000
restart: 'no'
extra_hosts:
- 'host.docker.internal:host-gateway'
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'