services: politicke-karty: build: . image: politicke-karty:latest container_name: politicke-karty restart: unless-stopped init: true # forwards SIGTERM so `docker stop` is instant environment: PORT: "3000" # MAX_CLIENTS_PER_ROOM: "64" # live connections per room (spectators) # MAX_CLIENTS_TOTAL: "2000" # live connections across the whole server ports: # Bound to localhost only: reachable by nginx on the host, not from the internet. - "127.0.0.1:${HOST_PORT:-8347}:3000" read_only: true cap_drop: [ALL] security_opt: ["no-new-privileges:true"] mem_limit: 256m pids_limit: 100 logging: driver: json-file options: { max-size: "10m", max-file: "3" }