Set default admin password
This commit is contained in:
@@ -35,7 +35,7 @@ services:
|
|||||||
command: >
|
command: >
|
||||||
--host tcp://docker:2375
|
--host tcp://docker:2375
|
||||||
--hide-label nas-compose.boostrap=true
|
--hide-label nas-compose.boostrap=true
|
||||||
--admin-password-file /run/secrets/portainer_password
|
--admin-password-file /var/run/secrets/portainer_password
|
||||||
networks:
|
networks:
|
||||||
- docker
|
- docker
|
||||||
- traefik
|
- traefik
|
||||||
|
|||||||
4
mounts/gotify/secrets/README.md
Normal file
4
mounts/gotify/secrets/README.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Contains the file `admin_password`
|
||||||
|
|
||||||
|
Envirnonment variable file for the default admin password, this is because gotify doesn't support docker secrets yet
|
||||||
|
https://github.com/gotify/server/issues/392
|
||||||
@@ -3,11 +3,15 @@ name: Notifications
|
|||||||
services:
|
services:
|
||||||
gotify:
|
gotify:
|
||||||
image: gotify/server
|
image: gotify/server
|
||||||
|
# Hack to get around the lack of secret support in Gotify
|
||||||
|
entrypoint: ['/bin/sh', '-c', 'GOTIFY_DEFAULTUSER_PASS=$(cat /run/secrets/admin_password) ./gotify-app']
|
||||||
networks:
|
networks:
|
||||||
- gotify
|
- gotify
|
||||||
- traefik
|
- traefik
|
||||||
volumes:
|
volumes:
|
||||||
- gotify:/app/data
|
- gotify:/app/data
|
||||||
|
secrets:
|
||||||
|
- admin_password
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
@@ -25,3 +29,7 @@ volumes:
|
|||||||
type: none
|
type: none
|
||||||
o: bind
|
o: bind
|
||||||
device: ${MOUNT_DIR?}/gotify/data/
|
device: ${MOUNT_DIR?}/gotify/data/
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
admin_password:
|
||||||
|
file: ${MOUNT_DIR?}/gotify/secrets/admin_password
|
||||||
Reference in New Issue
Block a user