MISP / x_old_misp_docker

MISP Docker (XME edition)
284 stars 172 forks source link

Help to deploy behind Traefik and question about scalability #143

Open pietrogu opened 2 years ago

pietrogu commented 2 years ago

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 commented 2 years ago

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:

pietrogu commented 2 years ago

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)