Minor cleanup of various files
This commit is contained in:
@@ -1,28 +1,20 @@
|
|||||||
---
|
|
||||||
|
|
||||||
# Authentik
|
|
||||||
# 2FA for Docker apps
|
|
||||||
# Authentik
|
|
||||||
# ↳ https://github.com/goauthentik/authentik
|
|
||||||
# ↳ https://goauthentik.io/
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
authentik-postgresql:
|
authentik-postgresql:
|
||||||
image: docker.io/library/postgres:12-alpine
|
image: docker.io/library/postgres:12-alpine
|
||||||
restart: unless-stopped
|
|
||||||
container_name: authentik-postgresql
|
container_name: authentik-postgresql
|
||||||
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
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
|
||||||
interval: 30s
|
interval: 30s
|
||||||
retries: 5
|
retries: 5
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
volumes:
|
volumes:
|
||||||
- /home/fxequals/docker/authentik/database:/var/lib/postgresql/data
|
- /home/fxequals/docker/authentik/database:/var/lib/postgresql/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
environment:
|
environment:
|
||||||
PUID: 1000
|
PUID: 1000
|
||||||
PGID: 1000
|
PGID: 1000
|
||||||
@@ -33,32 +25,36 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
authentik-redis:
|
authentik-redis:
|
||||||
image: docker.io/library/redis:alpine
|
image: docker.io/library/redis:alpine
|
||||||
|
container_name: authentik-redis
|
||||||
command: --save 60 1 --loglevel warning
|
command: --save 60 1 --loglevel warning
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: authentik-redis
|
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
test:
|
||||||
|
- CMD-SHELL
|
||||||
|
- redis-cli ping | grep PONG
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
interval: 30s
|
interval: 30s
|
||||||
retries: 5
|
retries: 5
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
volumes:
|
volumes:
|
||||||
- /home/fxequals/docker/authentik/redis:/data
|
- /home/fxequals/docker/authentik/redis:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
environment:
|
environment:
|
||||||
PUID: 1000
|
PUID: 1000
|
||||||
PGID: 1000
|
PGID: 1000
|
||||||
authentik-server:
|
authentik-server:
|
||||||
image: ghcr.io/goauthentik/server:latest
|
image: ghcr.io/goauthentik/server:latest
|
||||||
restart: unless-stopped
|
|
||||||
command: server
|
command: server
|
||||||
container_name: authentik-server
|
container_name: authentik-server
|
||||||
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
- ipv4_address: 172.18.1.10
|
ipv4_address: 172.18.1.10
|
||||||
|
# ports:
|
||||||
|
# - 9000:9000 # Remove after putting Authentik behind NGINX
|
||||||
|
# - 9443:9443 # Remove after putting Authentik behind NGINX
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
PUID: 1000
|
PUID: 1000
|
||||||
PGID: 1000
|
PGID: 1000
|
||||||
@@ -70,13 +66,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /home/fxequals/docker/authentik/media:/media
|
- /home/fxequals/docker/authentik/media:/media
|
||||||
- /home/fxequals/docker/authentik/custom-templates:/templates
|
- /home/fxequals/docker/authentik/custom-templates:/templates
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
# ports:
|
|
||||||
# - 9090:9090
|
|
||||||
# - 9443:9443
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- authentik-postgresql
|
- authentik-postgresql
|
||||||
- authentik-redis
|
- authentik-redis
|
||||||
@@ -95,20 +86,17 @@ services:
|
|||||||
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
|
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
|
||||||
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
|
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
|
||||||
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
|
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
|
||||||
# user: root
|
|
||||||
volumes:
|
volumes:
|
||||||
# - /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
- /home/fxequals/docker/authentik/media:/media
|
- /home/fxequals/docker/authentik/media:/media
|
||||||
- /home/fxequals/docker/authentik/certs:/certs
|
- /home/fxequals/docker/authentik/certs:/certs
|
||||||
- /home/fxequals/docker/authentik/custom-templates:/templates
|
- /home/fxequals/docker/authentik/custom-templates:/templates
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- authentik-postgresql
|
- authentik-postgresql
|
||||||
- authentik-redis
|
- authentik-redis
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
# Documentation available at https://docs.goauthentik.io/docs/install-config/install/docker-compose
|
||||||
|
@@ -3,8 +3,8 @@
|
|||||||
# Gitea
|
# Gitea
|
||||||
# A Github alternative
|
# A Github alternative
|
||||||
# Gitea
|
# Gitea
|
||||||
# ↳ https://link.to.github
|
# ↳ https://github.com/go-gitea/gitea
|
||||||
# ↳ https://link.to.docs
|
# ↳ https://docs.gitea.com/
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gitea:
|
gitea:
|
||||||
@@ -26,17 +26,7 @@ services:
|
|||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /home/fxequals/docker/gitea:/data
|
- /home/fxequals/docker/gitea:/data
|
||||||
# - /path/to/host:path/in/container
|
|
||||||
# - unique_volume_name:/path/in/container
|
|
||||||
|
|
||||||
# labels:
|
|
||||||
# - 'enabled=true'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
# ip_address: 127.0.0.1
|
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# unique_volume_name:
|
|
||||||
# driver: local
|
|
Reference in New Issue
Block a user