services: voxel: build: . image: voxel-game:latest container_name: voxel-game restart: unless-stopped # Bind to 127.0.0.1 by default so the container isn't accidentally # public when running on a workstation. Override the LHS to 0.0.0.0 # in your deploy environment (or via docker-compose.override.yml) if # you want the host's external interface to serve it. ports: - "127.0.0.1:8080:8080" environment: # voxel-server reads these. STATIC_DIR is baked in by the Dockerfile, # but you can override them here if mounting a different web/ from # the host. PORT: "8080" RUST_LOG: "info"