Skip to content

Instantly share code, notes, and snippets.

@felddy
Last active August 14, 2021 14:00
Show Gist options
  • Save felddy/5e737f60559e90041be192d59159ab7c to your computer and use it in GitHub Desktop.
Save felddy/5e737f60559e90041be192d59159ab7c to your computer and use it in GitHub Desktop.
Run two Foundry Virtual Tabletop instances from the same docker-compose file.
---
version: "3.8"
secrets:
credentials:
file: credentials.json
services:
foundry_1:
image: felddy/foundryvtt:release
hostname: my_foundry_host_1
init: true
restart: "unless-stopped"
volumes:
- type: bind
source: ./data_1
target: /data
environment:
- CONTAINER_CACHE=/data/container_cache
- FOUNDRY_LICENSE_KEY=1
secrets:
- source: credentials
target: config.json
ports:
- target: 30000
published: 30001
protocol: tcp
foundry_2:
image: felddy/foundryvtt:release
hostname: my_foundry_host_2
init: true
restart: "unless-stopped"
volumes:
- type: bind
source: ./data_2
target: /data
environment:
- CONTAINER_CACHE=/data/container_cache
- FOUNDRY_LICENSE_KEY=2
secrets:
- source: credentials
target: config.json
ports:
- target: 30000
published: 30002
protocol: tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment