summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: e25b460de4751e994a2934d7b65d58e1ec7115c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: "3"

services:
  foundry:
    image: felddy/foundryvtt
    container_name: foundry
    init: true
    restart: unless-stopped
    environment:
      - CONTAINER_CACHE=/cache
      - CONTAINER_PATCH_URLS=https://gist.githubusercontent.com/surged20/7cad549c28c01e950b32f03b1793efb7/raw/plutonium-next.sh
      - FOUNDRY_UID=1000
      - FOUNDRY_GID=1000
      - FOUNDRY_HOSTNAME=foundry.${DOMAIN}
      - FOUNDRY_PROXY_PORT=443
      - FOUNDRY_PROXY_SSL=true
      - FOUNDRY_MINIFY_STATIC_FILES=true
      - TIMEZONE=America/Chicago
    volumes:
      - nfs:/data
      - ./cache:/cache
    expose:
      - 30000
    secrets:
      - source: foundry_secrets
        target: config.json
    labels:
      - traefik.enable=true
      - traefik.http.routers.foundry.entrypoints=websecure

secrets:
  foundry_secrets:
    file: ./secrets/foundry_secrets.json

volumes:
  nfs:
    driver: local
    driver_opts:
      type: "nfs"
      o: addr=bifrost,nolock,soft,rw
      device: ":/mnt/share/docker/foundry"

networks:
  default:
    external:
      name: proxy