Add basic ansible stuff for management

acme-dns is fully handled by ansible already. All services should be
created by ansible in the end.
This commit is contained in:
Tobias Reisinger 2023-06-13 17:59:15 +02:00
parent 607ad23697
commit 7ff7dfe807
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
16 changed files with 162 additions and 3 deletions

View file

@ -66,7 +66,7 @@ services:
networks:
apps:
aliases:
- ${SERVICE_NAME}
- ${NAME}
networks:
apps:
external: true
@ -78,10 +78,10 @@ if [ ! -d "${caddy_path}" ]; then
caddy_path="caddy/config/conf.d"
fi
if [ -d "${caddy_path}" ]; then
cat <<EOF > "$caddy_path/${DOMAIN}.config"
cat <<EOF > "$caddy_path/${DOMAIN}.conf"
${DOMAIN} {
import default
reverse_proxy ${SERVICE_NAME}:${PORT}
reverse_proxy ${NAME}:${PORT}
}
EOF
else