PHRAS-3485 phraseanet using traefik provide by Phrasea Stack WIP [CI SKIP]

This commit is contained in:
nmaillat
2022-02-04 19:21:39 +01:00
parent ff7f280913
commit 3868eab4a2
3 changed files with 13 additions and 0 deletions

5
.env
View File

@@ -122,10 +122,15 @@ PHRASEANET_DOCKER_REGISTRY=local
# @run
PHRASEANET_DOCKER_TAG=4.1.5
# --- Phraseanet container network settings ------------------------------------------------------------------------------------
# Application port.
# @run
PHRASEANET_APP_PORT=8082
# Domain name used by traefik in Phrasea stack
# @run
PHRASEANET_HOSTNAME=phraseanet.phrasea.local
# --- Phraseanet container entrypoint settings -------------------------------------------------------------------------

View File

@@ -0,0 +1,3 @@
phrasea:
external:
name: ps_internal

View File

@@ -33,6 +33,11 @@ services:
- ${PHRASEANET_APP_PORT}:80
networks:
- internal
labels:
- "traefik.enable=true"
- "traefik.docker.network=ps_internal"
- "traefik.http.routers.phraseanet.rule=Host(`${PHRASEANET_HOSTNAME}`)"
- "traefik.http.routers.phraseanet.tls=true"
phraseanet:
build: