Skip to content

How to run two instances on different ports #348

Answered by felddy
farlo18 asked this question in Q&A
Discussion options

You must be logged in to vote

Great question!
I've answered it before in other places, but I guess not in this repository's discussions.

Here is an example docker-compose.yml file that should do what you're trying to accomplish:

---
version: "3"

secrets:
  credentials:
    file: credentials.json

services:
  foundry_1:
    image: felddy/foundryvtt:release
    hostname: my_foundry_host_1
    init: true
    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: 30000
        protocol: tcp
  

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@farlo18
Comment options

Answer selected by farlo18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants