Move portainer config to .env

This commit is contained in:
Jean Froment 2018-06-19 16:02:11 +02:00
parent 5c40d97fbe
commit c608bf5a14
4 changed files with 4 additions and 4 deletions

1
.env.sample Normal file
View File

@ -0,0 +1 @@
PORTAINER_ADMIN_PASSWORD=h4ckMePleAse

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/config /config
tunnel-options.sh tunnel-options.sh
traefik/.env traefik/.env
.env

View File

@ -6,5 +6,3 @@ MYSQL_ROOT_PASSWORD=h4ckMePleAse
# For Plex Pass download only # For Plex Pass download only
PLEX_EMAIL= PLEX_EMAIL=
PLEX_PASSWORD= PLEX_PASSWORD=
PORTAINER_ADMIN_PASSWORD=h4ckMePleAse

View File

@ -123,8 +123,8 @@ services:
networks: networks:
- web - web
env_file: env_file:
- config - .env
- traefik/traefik.env - traefik/.env
command: --admin-password ${PORTAINER_ADMIN_PASSWORD} --host=unix:///var/run/docker.sock command: --admin-password ${PORTAINER_ADMIN_PASSWORD} --host=unix:///var/run/docker.sock
labels: labels:
- 'traefik.backend=portainer' - 'traefik.backend=portainer'