Docker: remove all latest tags (it is the default tag when none
specified)
This commit is contained in:
parent
9f02493b0a
commit
fdd1df7d24
5 changed files with 7 additions and 71 deletions
|
@ -1,64 +0,0 @@
|
|||
[services.redis]
|
||||
image = "docker.io/library/redis:alpine"
|
||||
command = "--save 60 1 --loglevel warning"
|
||||
restart = "unless-stopped"
|
||||
volumes = ["redis:/data"]
|
||||
|
||||
[services.redis.healthcheck]
|
||||
test = ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
||||
start_period = "20s"
|
||||
interval = "30s"
|
||||
retries = 5
|
||||
timeout = "3s"
|
||||
|
||||
[services.server]
|
||||
image = "${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.10.1}"
|
||||
restart = "unless-stopped"
|
||||
command = "server"
|
||||
volumes = [
|
||||
"/docker/authentik/media:/media",
|
||||
"/docker/authentik/custom-templates:/templates",
|
||||
"/docker/authentik/geoip:/geoip",
|
||||
]
|
||||
env_file = [".env"]
|
||||
ports = [
|
||||
"0.0.0.0:${AUTHENTIK_PORT_HTTP:-9000}:9000",
|
||||
"0.0.0.0:${AUTHENTIK_PORT_HTTPS:-9443}:9443",
|
||||
]
|
||||
|
||||
[services.server.environment]
|
||||
AUTHENTIK_REDIS__HOST = "redis"
|
||||
AUTHENTIK_POSTGRESQL__HOST = "postgresql"
|
||||
AUTHENTIK_POSTGRESQL__USER = "${PG_USER:-authentik}"
|
||||
AUTHENTIK_POSTGRESQL__NAME = "${PG_DB:-authentik}"
|
||||
AUTHENTIK_POSTGRESQL__PASSWORD = "${PG_PASS}"
|
||||
|
||||
[services.worker]
|
||||
image = "${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.10.1}"
|
||||
restart = "unless-stopped"
|
||||
command = "worker"
|
||||
user = "root"
|
||||
volumes = [
|
||||
"./media:/media",
|
||||
"./certs:/certs",
|
||||
"/var/run/docker.sock:/var/run/docker.sock",
|
||||
"./custom-templates:/templates",
|
||||
"geoip:/geoip",
|
||||
]
|
||||
env_file = [".env"]
|
||||
|
||||
[services.worker.environment]
|
||||
AUTHENTIK_REDIS__HOST = "redis"
|
||||
AUTHENTIK_POSTGRESQL__HOST = "postgresql"
|
||||
AUTHENTIK_POSTGRESQL__USER = "${PG_USER:-authentik}"
|
||||
AUTHENTIK_POSTGRESQL__NAME = "${PG_DB:-authentik}"
|
||||
AUTHENTIK_POSTGRESQL__PASSWORD = "${PG_PASS}"
|
||||
|
||||
[services.geoipupdate]
|
||||
image = "maxmindinc/geoipupdate:latest"
|
||||
volumes = ["geoip:/usr/share/GeoIP"]
|
||||
env_file = [".env"]
|
||||
|
||||
[services.geoipupdate.environment]
|
||||
GEOIPUPDATE_EDITION_IDS = "GeoLite2-City"
|
||||
GEOIPUPDATE_FREQUENCY = "8"
|
|
@ -13,7 +13,7 @@ retries = 5
|
|||
timeout = "3s"
|
||||
|
||||
[services.server]
|
||||
image = "ghcr.io/goauthentik/server:latest"
|
||||
image = "ghcr.io/goauthentik/server"
|
||||
container_name = "authentik"
|
||||
restart = "unless-stopped"
|
||||
command = "server"
|
||||
|
@ -39,7 +39,7 @@ labels = [
|
|||
]
|
||||
|
||||
[services.worker]
|
||||
image = "ghcr.io/goauthentik/server:latest"
|
||||
image = "ghcr.io/goauthentik/server"
|
||||
container_name = "authentik-worker"
|
||||
restart = "unless-stopped"
|
||||
command = "worker"
|
||||
|
@ -55,7 +55,7 @@ env_file = [".env"]
|
|||
networks = ["authentik", "postgres"]
|
||||
|
||||
[services.geoipupdate]
|
||||
image = "maxmindinc/geoipupdate:latest"
|
||||
image = "maxmindinc/geoipupdate"
|
||||
container_name = "authentik-geoipupdate"
|
||||
restart = "unless-stopped"
|
||||
networks = ["authentik"]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[services.pihole]
|
||||
container_name = "pihole"
|
||||
image = "pihole/pihole:latest"
|
||||
image = "pihole/pihole"
|
||||
ports = ["53:53/tcp", "53:53/udp", "67:67/udp", "8069:80/tcp"]
|
||||
networks = ["proxy"]
|
||||
volumes = [
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[services.searx]
|
||||
container_name = "searx"
|
||||
image = "searxng/searxng:latest"
|
||||
image = "searxng/searxng"
|
||||
restart = "unless-stopped"
|
||||
networks = ["searx", "proxy"]
|
||||
volumes = [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[services.traefik]
|
||||
image = "traefik:latest"
|
||||
image = "traefik"
|
||||
container_name = "traefik"
|
||||
restart = "unless-stopped"
|
||||
ports = ["80:80", "443:443/tcp", "443:443/udp"]
|
||||
|
@ -34,7 +34,7 @@ labels = [
|
|||
]
|
||||
|
||||
[services.fail2ban]
|
||||
image = "crazymax/fail2ban:latest"
|
||||
image = "crazymax/fail2ban"
|
||||
container_name = "fail2ban"
|
||||
restart = "unless-stopped"
|
||||
network_mode = "host"
|
||||
|
|
Loading…
Reference in a new issue