Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiuser docker-compose on same dev environment #18

Open
danr opened this issue Feb 3, 2021 · 0 comments
Open

multiuser docker-compose on same dev environment #18

danr opened this issue Feb 3, 2021 · 0 comments

Comments

@danr
Copy link
Member

danr commented Feb 3, 2021

Some issues found when Anders and Dan both ran docker-compose on the dev server.

The anders user is running the docker compose in the directories cli and db.
Then both anders and dan want to run webserver. The dan user does these changes:

  1. Changes to TRAEFIK_FRONTEND_END in .env

  2. Volumes: changing to make them to absolute directories:

    volumes:
      - /home/dan/imagedb/webserver:/app
      - /share/mikro:/share/mikro
      - /share/imagedb:/share/imagedb
    
  3. Service and container name

    services:
      imagedbweb-dan:
        build:
          context: .
          dockerfile: Dockerfile
        container_name: imageweb-dan
    
  4. Traefik route name in under label:

      - "traefik.http.routers.imagedbweb-dan.rule=Host(`${TRAEFIK_FRONTEND_URL?You need to specify env TRAEFIK_FRONTEND_URL, e.g. TRAEFIK_FRONTEND_URL=name.my-domain.com}`)"
      - "traefik.http.routers.imagedbweb-dan.entrypoints=websecure"
      - "traefik.http.routers.imagedbweb-dan.tls.certresolver=myresolver"
    
  5. Port exposed to traefik:

    ports:
      - 18092:8080
    labels:
      - "traefik.port=18092"
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant