feat(id.tjo.space): healthchecks and auto update
This commit is contained in:
parent
0ab4db0e72
commit
713389cdd1
5 changed files with 11 additions and 1 deletions
|
@ -10,6 +10,7 @@ Volume=/srv/authentik/media:/media
|
|||
Volume=/srv/authentik/custom-templates:/custom-templates
|
||||
Network=main.network
|
||||
User=1200
|
||||
AutoUpdate=registry
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
@ -11,6 +11,7 @@ Volume=/srv/authentik/certs:/certs
|
|||
Volume=/srv/authentik/custom-templates:/custom-templates
|
||||
Network=main.network
|
||||
User=1200
|
||||
AutoUpdate=registry
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
Description=A Caddy Container
|
||||
|
||||
[Container]
|
||||
Image=docker.io/caddy:2.9
|
||||
Image=docker.io/caddy:2
|
||||
PublishPort=[::]:443:443
|
||||
PublishPort=0.0.0.0:443:443
|
||||
PublishPort=[::]:80:80
|
||||
PublishPort=0.0.0.0:80:80
|
||||
Volume=/etc/caddy:/etc/caddy:ro
|
||||
Network=main.network
|
||||
AutoUpdate=registry
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
@ -8,6 +8,9 @@ EnvironmentFile=/etc/postgresql/secrets.env
|
|||
Environment=POSTGRES_USER=id.tjo.space
|
||||
Environment=POSTGRES_DB=id.tjo.space
|
||||
Network=main.network
|
||||
AutoUpdate=registry
|
||||
HealthCmd=pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}
|
||||
HealthStartPeriod=20s
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
@ -4,6 +4,10 @@ Description=A Valkey Container
|
|||
[Container]
|
||||
Image=docker.io/valkey/valkey:8
|
||||
Network=main.network
|
||||
AutoUpdate=registry
|
||||
HealthCmd=valkey-cli ping | grep PONG
|
||||
HealthStartPeriod=20s
|
||||
HealthTimeout=3s
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
Loading…
Reference in a new issue