version: "3.7" services: foundryvtt: image: felddy/foundryvtt:release hostname: foundry.krumel.moe init: true volumes: - /srv/docker/foundry:/data ports: - "30000:30000/tcp" restart: "unless-stopped" environment: - FOUNDRY_HOSTNAME=foundry.krumel.moe - FOUNDRY_LOCAL_HOSTNAME=petit-docker.grafschaft.lan:30000 - FOUNDRY_PROXY_PORT=443 - FOUNDRY_PROXY_SSL=true - CONTAINER_PRESERVE_CONFIG=true networks: - foundry secrets: - source: foundry_creds target: config.json networks: foundry: ipam: config: - subnet: 172.20.60.0/24 secrets: foundry_creds: file: /srv/docker/docker-secrets/foundry.json