-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
22 lines (21 loc) · 810 Bytes
/
docker-compose.yml
File metadata and controls
22 lines (21 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
services:
craftbox:
build: .
container_name: craftbox
restart: unless-stopped
ports:
- "6464:6464" # Web panel
- "25565:25565" # Default Minecraft server port
# Add more ports as needed for additional servers:
# - "25566:25566"
# - "25567:25567"
volumes:
- craftbox-data:/app/data
environment:
- LOG_LEVEL=DEBUG
# - PORT=6464 # Change if you want to run the web panel on a different port
# - NODE_ENV=production # Will require HTTPS for secure cookies, so only enable if you have a reverse proxy with SSL
# - TRUST_PROXY=true # Enable if running behind a reverse proxy (e.g. Nginx, Caddy, Cloudflare Tunnel) so that rate limiting and secure cookies work correctly
stop_grace_period: 45s
volumes:
craftbox-data: