# figcraft-server with Docker Compose; setup in docs/server.md ("With Docker Compose"). From this # directory, with a TLS reverse proxy on this machine in front of port 47900: # # echo FIGCRAFT_SERVER_PUBLIC_URL=wss://figcraft.example.com/ > .env # docker compose up -d --build # docker compose exec figcraft-server figcraft-server --config /etc/figcraft-server/server.toml key # # .env holds the settings, one FIGCRAFT_SERVER_* variable a line (docs/server.md, "Configuration"); # upgrades read it again. # The image's health check asks the server for /healthz. services: figcraft-server: build: context: ../.. dockerfile: packaging/server/Dockerfile image: figcraft-server restart: unless-stopped env_file: .env environment: # Where the proxy's connections come from (the containers' address range), so the limits # per address count the people behind it. FIGCRAFT_SERVER_TRUSTED_PROXY: ${FIGCRAFT_SERVER_TRUSTED_PROXY:-172.16.0.0/12} # Loopback only: ports Docker publishes bypass the firewall, so the proxy is the way in. ports: - "127.0.0.1:47900:47900" volumes: - figcraft-data:/data volumes: figcraft-data: