get traefik working

This commit is contained in:
Adam Semenenko 2022-06-25 13:42:50 +01:00
parent dfc8b5c91d
commit cf5804b42d
5 changed files with 22 additions and 4 deletions

View file

@ -13,13 +13,17 @@ services:
DIST_DIR: "./build/distributions/" DIST_DIR: "./build/distributions/"
environment: environment:
KAFKA_BOOTSTRAP_SERVERS: "http://kafka:29092" KAFKA_BOOTSTRAP_SERVERS: "http://kafka:29092"
KAFKA_STREAMS_STATE_DIR: "http://kafka:29092" # KAFKA_STREAMS_STATE_DIR: "http://kafka:29092"
SERVER_PORT: "12081" SERVER_PORT: "12081"
# ports: ports:
# - "12081:12081" # http and ws - "12080:12081" # http and ws
networks: networks:
- "kafka-nw" - "kafka-nw"
- "kafkatorio-nw"
- "traefik-nw" - "traefik-nw"
labels:
- "traefik.enable=true"
- "traefik.http.services.events-server-kafkatorio.loadbalancer.server.port=12081"
networks: networks:
kafka-nw: kafka-nw:

View file

@ -10,6 +10,9 @@ services:
restart: "no" restart: "no"
networks: networks:
- "kafkatorio-nw" - "kafkatorio-nw"
- "traefik-nw"
labels:
- "traefik.enable=true"
ports: ports:
- "34197:34197/udp" # factorio - "34197:34197/udp" # factorio
- "27015:27015/tcp" # rcon - "27015:27015/tcp" # rcon
@ -35,3 +38,6 @@ networks:
kafkatorio-nw: kafkatorio-nw:
name: "kafkatorio-nw" name: "kafkatorio-nw"
external: true external: true
traefik-nw:
name: "traefik-nw"
external: true

View file

@ -34,6 +34,8 @@ services:
networks: networks:
- "kafka-nw" - "kafka-nw"
- "traefik-nw" - "traefik-nw"
labels:
- "traefik.enable=true"
# ports: # ports:
# - "8080:8080" # - "8080:8080"
environment: environment:

View file

@ -20,7 +20,11 @@ services:
KAFKA_HOST: "kafka:29092" KAFKA_HOST: "kafka:29092"
volumes: volumes:
# Windows (requires privileged/root) # Windows (requires privileged/root)
- "//var/run/docker.sock:/var/run/docker.sock" # - "//var/run/docker.sock:/var/run/docker.sock"
# Rootless:
- "/run/user/1000/docker.sock:/var/run/docker.sock"
# Unix? # Unix?
# - "/var/run/docker.sock:/var/run/docker.sock" # - "/var/run/docker.sock:/var/run/docker.sock"

View file

@ -13,6 +13,8 @@ services:
networks: networks:
- "kafkatorio-nw" - "kafkatorio-nw"
- "traefik-nw" - "traefik-nw"
labels:
- "traefik.enable=true"
networks: networks:
kafkatorio-nw: kafkatorio-nw: