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

Help to deploy behind Traefik and question about scalability #143

Open
pietrogu opened this issue Jan 13, 2022 · 2 comments
Open

Help to deploy behind Traefik and question about scalability #143

pietrogu opened this issue Jan 13, 2022 · 2 comments

Comments

@pietrogu
Copy link

Hi,

i'm trying to deploy this docker image of MISP behind Traefik, but with no luck.
Can someone share some sort of guide (and maybe some docker-compose file template) on how to make this work?

Also, can this dockerization be helpful in realizing a scalable MISP solution?

Thank you in advance
Pietro

@ftoppi
Copy link

ftoppi commented Jan 15, 2022

Hello,

assuming you have a working Traefik instance, this is how to expose MISP web container on misp.foobar.com:

services:
  web:
# comment or remove the ports section
#    ports:
#      - "80:80"
#      - "443:443"
    networks:
      - default
      - traefik
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik"
      - "traefik.http.routers.misp.rule=Host(`misp.foobar.com`)"
      - "traefik.http.routers.misp.service=misp"
      - "traefik.http.routers.misp.tls=true"
      - "traefik.http.routers.misp.tls.certresolver=foobar"
      - "traefik.http.routers.misp.entrypoints=websecure"
      - "traefik.http.services.misp.loadbalancer.server.port=443"
      - "traefik.http.services.misp.loadbalancer.server.scheme=https"
      - "traefik.http.services.misp.loadbalancer.serversTransport=misp"
      - "traefik.http.serversTransports.misp.insecureSkipVerify=true"

networks:
  traefik:
    external: true

Your traefik container needs to:

  • be connected to a network called traefik
  • have a certresolver called foobar
  • have a tls entrypoint called websecure

@pietrogu
Copy link
Author

pietrogu commented Jan 16, 2022

Hi,

could you please share the complete configuration with also the db part?
I am very new to docker behind traefik!

also, should the image parameters be changed or should they stay to default (eg. localhost for server)

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

2 participants