From 96fa350f73f001172cbd10a62316eac6bf809afd Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Wed, 30 Sep 2020 01:58:57 +0200 Subject: [PATCH] Add optional mailrelay config --- .envrc.sample | 13 +++++++++++-- compose.mailrelay.yml | 11 +++++++++++ compose.yml | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 compose.mailrelay.yml diff --git a/.envrc.sample b/.envrc.sample index c759e89..2253c26 100644 --- a/.envrc.sample +++ b/.envrc.sample @@ -1,2 +1,11 @@ -export DOMAIN=id.autonomic.zone -export STACK_NAME=autonomic +export SERVICE=keycloak +export STACK_NAME=keycloak + +export DOMAIN=keycloak.example.com +export LETS_ENCRYPT_ENV=production + +export ADMIN_USERNAME=admin + +export DB_ROOT_PASSWORD_VERSION=v1 +export DB_PASSWORD_VERSION=v1 +export ADMIN_PASSWORD_VERSION=v1 diff --git a/compose.mailrelay.yml b/compose.mailrelay.yml new file mode 100644 index 0000000..2c8617e --- /dev/null +++ b/compose.mailrelay.yml @@ -0,0 +1,11 @@ +--- +version: "3.8" + +services: + keycloak: + networks: + - mail + +networks: + mail: + external: true diff --git a/compose.yml b/compose.yml index ea31285..9104e42 100644 --- a/compose.yml +++ b/compose.yml @@ -17,7 +17,7 @@ services: - DB_USER=keycloak - DB_VENDOR=mariadb - KEYCLOAK_PASSWORD_FILE=/run/secrets/admin_passwd - - KEYCLOAK_USER="${ADMIN_USERNAME}" + - KEYCLOAK_USER=${ADMIN_USERNAME} - PROXY_ADDRESS_FORWARDING=true healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080"]