Files
homelabstack/stacks/foundry/docker-compose.yml
T
ginnoir 1028bc3a74
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m28s
Serve 5etools from storage1 via Caddy instead of a 14G image.
The mirror is static files; keeping it in a container burned root disk. Caddy file_server bind-mounts /storage1/labdata/5etools like the other static sites.
2026-08-25 22:24:39 -05:00

59 lines
1.6 KiB
YAML

# foundry stack — Foundry VTT instances.
# Tabletop services; bind-mounted to /storage1/foundry*. They don't talk to each
# other, so they only need `edge` for Caddy to proxy them.
# 5etools is static files at /storage1/labdata/5etools, served by Caddy.
services:
foundry:
container_name: foundry
image: felddy/foundryvtt:latest
hostname: valhalla-primary
init: true
restart: unless-stopped
networks: [edge]
volumes:
- /storage1/foundry:/data
- /storage1/foundry/updatemain.bash:/home/foundry/updatemain.bash
- /storage1/Books/Tabletop:/data/Data/storage
env_file:
- stack.env
environment:
- CONTAINER_VERBOSE=true
- FOUNDRY_HOSTNAME=foundry.ginnoir.com
- FOUNDRY_PROXY_PORT=443
- FOUNDRY_PROXY_SSL=true
- CONTAINER_PRESERVE_OWNER=/data/Data/storage
- FOUNDRY_UID=1000
- FOUNDRY_GID=1000
ports:
- "30000:30000"
foundry2:
container_name: foundry2
image: felddy/foundryvtt:latest
hostname: valhalla-secondary
init: true
restart: unless-stopped
networks: [edge]
volumes:
- /storage1/foundry2:/data
- /storage1/foundry/updatemain.bash:/home/foundry/updatemain.bash
- /storage1/Books/Tabletop:/data/Data/storage
env_file:
- stack.env
environment:
- CONTAINER_VERBOSE=true
- FOUNDRY_HOSTNAME=foundry2.ginnoir.com
- FOUNDRY_PROXY_PORT=443
- FOUNDRY_PROXY_SSL=true
- CONTAINER_PRESERVE_OWNER=/data/Data/storage
- FOUNDRY_UID=1000
- FOUNDRY_GID=1000
ports:
- "30001:30000"
networks:
edge:
name: edge
external: true