Refactor secrets

This commit is contained in:
Florent Guiotte 2023-05-19 17:47:20 +02:00
parent 819c4962cf
commit df5f761391
6 changed files with 22 additions and 5 deletions

Binary file not shown.

View File

@ -64,6 +64,8 @@ services:
container_name: transmission
environment:
<<: *common-environment
FILE__USER: /run/secrets/transmission-user
FILE__PASS: /run/secrets/transmission-pw
volumes:
- transmission-config:/config
- /mnt/storage/download:/downloads
@ -73,6 +75,9 @@ services:
- 51413:51413
- 51413:51413/udp
restart: unless-stopped
secrets:
- transmission-user
- transmission-pw
# WIP
# radarr:
@ -94,13 +99,12 @@ services:
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing
hostname: drmanhattan #optional
hostname: drmanhattan
environment: *common-environment
volumes:
- ./syncthing:/config
- /mnt/storage/music/Florent:/music
ports:
#- 8384:8384
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp
@ -115,10 +119,13 @@ services:
- lychee-db:/config
environment:
<<: *common-environment
MYSQL_ROOT_PASSWORD: rootpassword
FILE__MYSQL_ROOT_PASSWORD: /run/secrets/lychee-db-root-pw
FILE__MYSQL_PASSWORD: /run/secrets/lychee-db-pw
MYSQL_DATABASE: lychee
MYSQL_USER: lychee
MYSQL_PASSWORD: dbpassword
secrets:
- lychee-db-root-pw
- lychee-db-pw
lychee:
@ -132,11 +139,13 @@ services:
- lychee-pictures:/pictures
environment:
<<: *common-environment
FILE__DB_PASSWORD: /run/secrets/lychee-db-pw
DB_HOST: lychee-db
DB_USERNAME: lychee
DB_PASSWORD: dbpassword
DB_DATABASE: lychee
DB_PORT: 3306
secrets:
- lychee-db-pw
# WIP
# zotero:
@ -227,7 +236,15 @@ volumes:
secrets:
lychee-db-root-pw:
file: lychee-db-root-pw.secret
lychee-db-pw:
file: lychee-db-pw.secret
nextcloud-db-root-pw:
file: nextcloud-db-root-pw.secret
nextcloud-db-pw:
file: nextcloud-db-pw.secret
transmission-user:
file: transmission-user.secret
transmission-pw:
file: transmission-pw.secret

BIN
lychee-db-pw.secret Normal file

Binary file not shown.

BIN
lychee-db-root-pw.secret Normal file

Binary file not shown.

BIN
transmission-pw.secret Normal file

Binary file not shown.

BIN
transmission-user.secret Normal file

Binary file not shown.