# An example Tidewall dedicated server. From this directory: # # docker compose up -d builds the image from the repository and starts it # docker compose logs -f the server's JSON log lines # docker compose down stops it cleanly: players are told it shut down # # TIDEWALL_PORT changes the UDP port on the host (default 24650). To change anything # else, mount your own server.cfg over /etc/tidewall/server.cfg (see the commented # volume below) or add options to `command`. name: tidewall-server services: server: build: context: ../.. dockerfile: packaging/docker/Dockerfile image: tidewall-server:dev container_name: tidewall-server restart: unless-stopped command: ["--config=/etc/tidewall/server.cfg", "--port=${TIDEWALL_PORT:-24650}"] ports: - "${TIDEWALL_PORT:-24650}:${TIDEWALL_PORT:-24650}/udp" read_only: true tmpfs: - /tmp:size=64m,mode=1777 cap_drop: - ALL security_opt: - no-new-privileges:true stop_grace_period: 20s # volumes: # - ./server.cfg:/etc/tidewall/server.cfg:ro