surf_megastructure/docker-compose.yaml
Nathan Rashleigh bcf798a5f9 fastdl
2026-02-10 10:46:45 +11:00

76 lines
1.4 KiB
YAML

services:
cssds:
image: registry.ntwl.xyz/megastructure-surf
build:
dockerfile: cssds.dockerfile
context: ./etc
user: "1000:1000"
env_file:
- .env
# command: sleep 5000000
network_mode: host
ports:
- "27015:27015"
- "27015:27015/udp"
- "27020:27020"
volumes:
- ./etc:/home/steam/etc
- ./data/cssds:/home/steam/cssds
- tf2ds:/home/steam/tf2ds
- fastdl-maps:/fastdl/maps:ro
db:
image: mariadb:12
restart: always
ports:
- "3306:3306"
env_file:
- .env
volumes:
- ./etc/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
mapsdl:
image: registry.ntwl.xyz/megastructure-surf-mapsdl
build:
context: ./src/mapsdl
dockerfile: Dockerfile
volumes:
# Mount credentials (read-only)
- ./src/mapsdl/credentials:/app/credentials:ro
# Output bz2 files to shared FastDL volume
- fastdl-maps:/maps
environment:
- MAPS_DIR=/maps
- TEMP_DIR=/tmp/mapsdl
- GOOGLE_APPLICATION_CREDENTIALS=/app/credentials/service-account.json
# Don't start automatically with docker-compose up
profiles:
- tools
# Run once and exit
restart: "no"
fastdl:
build: ./src/fastdl
ports:
- "8080:80"
volumes:
- fastdl-maps:/srv/maps:ro
volumes:
tf2ds:
fastdl-maps: