services:
  foundry:
    image: felddy/foundryvtt:release
    restart: unless-stopped
    hostname: foundry
    security_opt:
      - apparmor=unconfined
    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_VERSION=13.351
      - FOUNDRY_MINIFY_STATIC_FILES=true
    ports:
      - "30000:30000"
