root: add restart: unless-stopped to compose
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
c476503594
commit
a9d0d96418
|
@ -4,6 +4,7 @@ version: '3.2'
|
||||||
services:
|
services:
|
||||||
postgresql:
|
postgresql:
|
||||||
image: postgres:12
|
image: postgres:12
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- database:/var/lib/postgresql/data
|
- database:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
|
@ -20,6 +21,7 @@ services:
|
||||||
- internal
|
- internal
|
||||||
server:
|
server:
|
||||||
image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.4.1}
|
image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.4.1}
|
||||||
|
restart: unless-stopped
|
||||||
command: server
|
command: server
|
||||||
environment:
|
environment:
|
||||||
AUTHENTIK_REDIS__HOST: redis
|
AUTHENTIK_REDIS__HOST: redis
|
||||||
|
@ -47,6 +49,7 @@ services:
|
||||||
- .env
|
- .env
|
||||||
worker:
|
worker:
|
||||||
image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.4.1}
|
image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.4.1}
|
||||||
|
restart: unless-stopped
|
||||||
command: worker
|
command: worker
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
@ -66,6 +69,7 @@ services:
|
||||||
- .env
|
- .env
|
||||||
static:
|
static:
|
||||||
image: ${AUTHENTIK_IMAGE_STATIC:-beryju/authentik-static}:${AUTHENTIK_TAG:-2021.4.1}
|
image: ${AUTHENTIK_IMAGE_STATIC:-beryju/authentik-static}:${AUTHENTIK_TAG:-2021.4.1}
|
||||||
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
labels:
|
labels:
|
||||||
|
@ -81,6 +85,7 @@ services:
|
||||||
- ./media:/usr/share/nginx/html/media
|
- ./media:/usr/share/nginx/html/media
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik:2.3
|
image: traefik:2.3
|
||||||
|
restart: unless-stopped
|
||||||
command:
|
command:
|
||||||
- "--log.format=json"
|
- "--log.format=json"
|
||||||
- "--api.insecure=true"
|
- "--api.insecure=true"
|
||||||
|
|
Reference in New Issue