migration of portainer and authentik
This commit is contained in:
parent
58fe40dbfd
commit
563baf2f28
2 changed files with 13 additions and 29 deletions
|
|
@ -20,16 +20,14 @@ services:
|
|||
UMASK: 002
|
||||
networks:
|
||||
- authentik
|
||||
# env_file:
|
||||
# - .env
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == nas
|
||||
|
||||
- node.hostname == znas
|
||||
|
||||
redis:
|
||||
image: docker.io/library/redis:alpine
|
||||
user: "1964:1964"
|
||||
command: --save 60 1 --loglevel warning
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
|
|
@ -50,10 +48,11 @@ services:
|
|||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == nas
|
||||
- node.hostname == znas
|
||||
|
||||
authentik:
|
||||
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2025.2}
|
||||
user: "1964:1964"
|
||||
restart: unless-stopped
|
||||
command: server
|
||||
environment:
|
||||
|
|
@ -79,7 +78,7 @@ services:
|
|||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == nas
|
||||
- node.hostname == znas
|
||||
labels:
|
||||
- homepage.group=Management
|
||||
- homepage.name=Authentik
|
||||
|
|
@ -96,6 +95,7 @@ services:
|
|||
|
||||
worker:
|
||||
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2025.2}
|
||||
user: "1964:1964"
|
||||
restart: unless-stopped
|
||||
command: worker
|
||||
environment:
|
||||
|
|
@ -109,13 +109,6 @@ services:
|
|||
PGID: 998
|
||||
PUID: 1001
|
||||
UMASK: 002
|
||||
# `user: root` and the docker socket volume are optional.
|
||||
# See more for the docker socket integration here:
|
||||
# https://goauthentik.io/docs/outposts/integrations/docker
|
||||
# Removing `user: root` also prevents the worker from fixing the permissions
|
||||
# on the mounted folders, so when removing this make sure the folders have the correct UID/GID
|
||||
# (1000:1000 by default)
|
||||
user: root
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /DockerVol/Authentik/media:/media
|
||||
|
|
@ -129,19 +122,10 @@ services:
|
|||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == nas
|
||||
|
||||
volumes:
|
||||
database:
|
||||
driver: local
|
||||
redis:
|
||||
driver: local
|
||||
- node.hostname == znas
|
||||
|
||||
networks:
|
||||
netgrimoire:
|
||||
external: true
|
||||
authentik:
|
||||
external: true
|
||||
|
||||
|
||||
# import the .env file first: set -a; . ./.env; set +a
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ services:
|
|||
# - caddy.reverse_proxy="{{upstreams 9000}}"
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == nas
|
||||
- node.hostname == znas
|
||||
|
||||
networks:
|
||||
netgrimoire:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue