diff --git a/docker-compose.yml b/docker-compose.yml index 1de11503..5701db5d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,18 @@ version: '3' services: + # traefik: + # command: + # - "--api.insecure=true" + # - "--providers.docker=true" + # - "--providers.docker.exposedbydefault=false" + # - "--entrypoints.nopaque.address=:5000" + # image: traefik:2.0 + # ports: + # - 5000:5000 + # - 9090:8080 + # volumes: + # - /var/run/docker.sock:/var/run/docker.sock:ro web: depends_on: - db @@ -9,9 +21,18 @@ services: placement: constraints: - node.role == manager + env_file: nopaque.env + # labels: + # - "traefik.enable=true" + # - "traefik.http.routers.nopaque.entrypoints=nopaque" + # - "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)" + # # Use sticky sessions for load balancing + # # Socket.IO is not compatible with cookie sticky sessions which are the + # # only available option in traefik + # - "traefik.http.services.web-opaque.loadbalancer.sticky=true" + # - "traefik.http.services.web-opaque.loadbalancer.sticky.cookie.httpOnly=true" ports: - "5000:5000" - env_file: nopaque.env image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development volumes: - /mnt/nopaque:/mnt/nopaque