chore(traefik): move GTS traefik config to traefik

This commit is contained in:
Dan Anglin 2023-08-26 11:14:10 +01:00
parent 9a22c7c7dc
commit aa39cedd8b
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 3 additions and 5 deletions

View file

@ -4,11 +4,6 @@ set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
# Move the dynamic traefik config to the shared volume
if [ -f /flow/gts/tmp/traefik_gotosocial.yaml ]; then
mv /flow/gts/tmp/traefik_gotosocial.yaml {{ .Traefik.SharedMountPoint }}/dynamic/traefik_gotosocial.yaml
fi
mkdir -p {{ .GoToSocial.DataContainerDirectory }}/database mkdir -p {{ .GoToSocial.DataContainerDirectory }}/database
exec gotosocial --config-path /flow/gts/config/config.yaml server start exec gotosocial --config-path /flow/gts/config/config.yaml server start

View file

@ -1,9 +1,12 @@
# syntax=docker/dockerfile:1
FROM traefik:{{ .Traefik.Version }} FROM traefik:{{ .Traefik.Version }}
ADD traefik.yaml /flow/traefik/ ADD traefik.yaml /flow/traefik/
ADD dynamic_landing_page.yaml /tmp/dynamic_landing_page.yaml ADD dynamic_landing_page.yaml /tmp/dynamic_landing_page.yaml
ADD dynamic_gotosocial.yaml /tmp/dynamic_gotosocial.yaml
ADD entrypoint.sh / ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh