Set authentik secrets
This commit is contained in:
@@ -4,9 +4,9 @@ services:
|
|||||||
postgresql:
|
postgresql:
|
||||||
image: postgres:12-alpine
|
image: postgres:12-alpine
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=authentik
|
|
||||||
- POSTGRES_USER=authentik
|
- POSTGRES_USER=authentik
|
||||||
- POSTGRES_DB=authentik
|
- POSTGRES_DB=authentik
|
||||||
|
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_passwd
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
@@ -15,6 +15,8 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
volumes:
|
volumes:
|
||||||
- database:/var/lib/postgresql/data
|
- database:/var/lib/postgresql/data
|
||||||
|
secrets:
|
||||||
|
- postgres_passwd
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
@@ -38,7 +40,8 @@ services:
|
|||||||
AUTHENTIK_POSTGRESQL__HOST: postgresql
|
AUTHENTIK_POSTGRESQL__HOST: postgresql
|
||||||
AUTHENTIK_POSTGRESQL__USER: authentik
|
AUTHENTIK_POSTGRESQL__USER: authentik
|
||||||
AUTHENTIK_POSTGRESQL__NAME: authentik
|
AUTHENTIK_POSTGRESQL__NAME: authentik
|
||||||
AUTHENTIK_POSTGRESQL__PASSWORD: authentik
|
AUTHENTIK_POSTGRESQL__PASSWORD: file:///run/secrets/postgres_passwd
|
||||||
|
AUTHENTIK_SECRET_KEY: file:///run/secrets/secret_key
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- traefik
|
- traefik
|
||||||
@@ -47,6 +50,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- media:/media
|
- media:/media
|
||||||
- custom-templates:/templates
|
- custom-templates:/templates
|
||||||
|
secrets:
|
||||||
|
- postgres_passwd
|
||||||
|
- secret_key
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
|
|
||||||
@@ -58,13 +64,23 @@ services:
|
|||||||
AUTHENTIK_POSTGRESQL__HOST: postgresql
|
AUTHENTIK_POSTGRESQL__HOST: postgresql
|
||||||
AUTHENTIK_POSTGRESQL__USER: authentik
|
AUTHENTIK_POSTGRESQL__USER: authentik
|
||||||
AUTHENTIK_POSTGRESQL__NAME: authentik
|
AUTHENTIK_POSTGRESQL__NAME: authentik
|
||||||
AUTHENTIK_POSTGRESQL__PASSWORD: authentik
|
AUTHENTIK_POSTGRESQL__PASSWORD: file:///run/secrets/postgres_passwd
|
||||||
|
AUTHENTIK_SECRET_KEY: file:///run/secrets/secret_key
|
||||||
volumes:
|
volumes:
|
||||||
- media:/media
|
- media:/media
|
||||||
- certs:/certs
|
- certs:/certs
|
||||||
- custom-templates:/templates
|
- custom-templates:/templates
|
||||||
|
secrets:
|
||||||
|
- postgres_passwd
|
||||||
|
- secret_key
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
macvlan:
|
||||||
|
external: true
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database:
|
database:
|
||||||
redis:
|
redis:
|
||||||
@@ -72,8 +88,8 @@ volumes:
|
|||||||
certs:
|
certs:
|
||||||
custom-templates:
|
custom-templates:
|
||||||
|
|
||||||
networks:
|
secrets:
|
||||||
macvlan:
|
postgres_passwd:
|
||||||
external: true
|
file: ${NASCOMPOSE_SERVICES?}/secrets/authentik/postgress_passwd
|
||||||
traefik:
|
secret_key:
|
||||||
external: true
|
file: ${NASCOMPOSE_SERVICES?}/secrets/authentik/secret_key
|
||||||
|
|||||||
0
docker/configs/transmission/openvpn-post-config.sh
Normal file → Executable file
0
docker/configs/transmission/openvpn-post-config.sh
Normal file → Executable file
Reference in New Issue
Block a user