Giter Site home page Giter Site logo

Comments (3)

felddy avatar felddy commented on June 11, 2024

We covered a bit of this on the discord. Just documenting it here for anyone else that has similar questions.

This docker-compose.yml file will run two Foundry services listening on ports 30001 and 30002.

---
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
        mode: host
  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
        mode: host

from foundryvtt-docker.

kalebr avatar kalebr commented on June 11, 2024

Got it to work by removing the
mode:host

from foundryvtt-docker.

felddy avatar felddy commented on June 11, 2024

Glad you got it working! 🎉

Don't hesitate to me know if you have any other questions about the project.

from foundryvtt-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.