version: "3.8"

# secrets:
#   config_json:
#     file: secrets.json

services:
  foundry:
    image: felddy/foundryvtt:release
    restart: unless-stopped
    hostname: foundry
    volumes:
      - type: bind
        source: ./data
        target: /data
    environment:
      - FOUNDRY_PASSWORD=${FOUNDRY_PASSWORD}
      - FOUNDRY_USERNAME=${FOUNDRY_USERNAME}
      - FOUNDRY_ADMIN_KEY=${FOUNDRY_ADMIN_KEY}
      - CONTAINER_PRESERVE_CONFIG=true
      - FOUNDRY_CSS_THEME=scifi
      # - FOUNDRY_HOSTNAME=foundry.manticorum.com
      - FOUNDRY_GID=0
      - FOUNDRY_UID=0
      - FOUNDRY_MINIFY_STATIC_FILES=true
      - TIMEZONE=America/Chicago
    ports:
      - target: 30000
        published: 30000
        protocol: tcp
    # secrets:
    #   - source: config_json
    #     target: config.json
