mirror of
https://github.com/Kugelschieber/marvinblum.git
synced 2026-01-18 06:40:27 +00:00
Changed port in Dockerfile, updated traefik configuration.
This commit is contained in:
@@ -19,10 +19,9 @@ WORKDIR /app
|
|||||||
# default config
|
# default config
|
||||||
ENV MB_LOGLEVEL=info
|
ENV MB_LOGLEVEL=info
|
||||||
ENV MB_ALLOWED_ORIGINS=*
|
ENV MB_ALLOWED_ORIGINS=*
|
||||||
ENV MB_HOST=0.0.0.0:80
|
ENV MB_HOST=0.0.0.0:8888
|
||||||
ENV MB_DB_PORT=5432
|
ENV MB_DB_PORT=5432
|
||||||
ENV MB_DB_SSLMODE=disable
|
ENV MB_DB_SSLMODE=disable
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 8888
|
||||||
EXPOSE 443
|
|
||||||
CMD ["/app/main"]
|
CMD ["/app/main"]
|
||||||
|
|||||||
@@ -5,11 +5,14 @@ services:
|
|||||||
image: "traefik:v2.2"
|
image: "traefik:v2.2"
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- traefik-internal
|
||||||
command:
|
command:
|
||||||
# - "--log.level=DEBUG"
|
# - "--log.level=DEBUG"
|
||||||
# - "--api.insecure=true"
|
# - "--api.insecure=true"
|
||||||
- "--providers.docker=true"
|
- "--providers.docker=true"
|
||||||
- "--providers.docker.exposedbydefault=false"
|
- "--providers.docker.exposedbydefault=false"
|
||||||
|
- "--providers.docker.network=marvinblum_traefik-internal"
|
||||||
- "--entrypoints.web.address=:80"
|
- "--entrypoints.web.address=:80"
|
||||||
- "--entrypoints.websecure.address=:443"
|
- "--entrypoints.websecure.address=:443"
|
||||||
- "--certificatesresolvers.tls-resolver.acme.httpchallenge=true"
|
- "--certificatesresolvers.tls-resolver.acme.httpchallenge=true"
|
||||||
@@ -24,15 +27,23 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- /root/marvinblum/letsencrypt:/letsencrypt
|
- /root/marvinblum/letsencrypt:/letsencrypt
|
||||||
|
# labels:
|
||||||
|
# - "traefik.enable=true"
|
||||||
|
# - "traefik.port=8080"
|
||||||
|
# - "traefik.http.routers.traefik.entrypoints=web"
|
||||||
|
# - "traefik.http.routers.traefik.service=api@internal"
|
||||||
marvinblum:
|
marvinblum:
|
||||||
image: kugel/marvinblum
|
image: kugel/marvinblum
|
||||||
container_name: marvinblum
|
container_name: marvinblum
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- traefik
|
- traefik
|
||||||
|
networks:
|
||||||
|
- postgres_db-internal
|
||||||
|
- traefik-internal
|
||||||
environment:
|
environment:
|
||||||
- MB_EMVI_CLIENT_ID="3fBBn144yvSF9R3dPC8l"
|
- MB_EMVI_CLIENT_ID=3fBBn144yvSF9R3dPC8l
|
||||||
- MB_EMVI_CLIENT_SECRET="dw3FeshelTgdf1Gj13J7uF5FfdPDi40sQvvwqeFVKTTyIDuCdlAHhRY72csFL6yg"
|
- MB_EMVI_CLIENT_SECRET=dw3FeshelTgdf1Gj13J7uF5FfdPDi40sQvvwqeFVKTTyIDuCdlAHhRY72csFL6yg
|
||||||
- MB_EMVI_ORGA=marvin
|
- MB_EMVI_ORGA=marvin
|
||||||
- MB_DB_HOST=postgres
|
- MB_DB_HOST=postgres
|
||||||
- MB_DB_USER=
|
- MB_DB_USER=
|
||||||
@@ -40,6 +51,7 @@ services:
|
|||||||
- MB_DB_SCHEMA=
|
- MB_DB_SCHEMA=
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
- "traefik.port=8888"
|
||||||
- "traefik.http.routers.marvinblum.entrypoints=web"
|
- "traefik.http.routers.marvinblum.entrypoints=web"
|
||||||
- "traefik.http.routers.marvinblum.rule=Host(`marvinblum.de`)"
|
- "traefik.http.routers.marvinblum.rule=Host(`marvinblum.de`)"
|
||||||
- "traefik.http.routers.marvinblum.middlewares=http-redirect"
|
- "traefik.http.routers.marvinblum.middlewares=http-redirect"
|
||||||
@@ -48,3 +60,9 @@ services:
|
|||||||
- "traefik.http.routers.marvinblum-secure.tls.certresolver=tls-resolver"
|
- "traefik.http.routers.marvinblum-secure.tls.certresolver=tls-resolver"
|
||||||
- "traefik.http.middlewares.http-redirect.redirectscheme.scheme=https"
|
- "traefik.http.middlewares.http-redirect.redirectscheme.scheme=https"
|
||||||
- "traefik.http.middlewares.http-redirect.redirectscheme.permanent=true"
|
- "traefik.http.middlewares.http-redirect.redirectscheme.permanent=true"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik-internal:
|
||||||
|
driver: bridge
|
||||||
|
postgres_db-internal:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user