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