docker-compose: took not sensetive data out of compose's secrets to bind mounts
This commit is contained in:
1 parent
5e04b89b7b
commit
0c4ef9cb17
1 file changed
+6
-12
+6
-12
@@ -8,17 +8,16 @@ services:
|
||||
- 2022:2022
|
||||
secrets:
|
||||
- chatkey
|
||||
- admins # Not so secret
|
||||
- motd # Also not a secret
|
||||
command: "/usr/local/bin/ssh-chat --identity /run/secrets/chatkey --admin=/run/secrets/admins --log=/dev/stdout --motd=/run/secrets/motd"
|
||||
command: "/usr/local/bin/ssh-chat --identity /run/secrets/chatkey --admin=/admins --log=/dev/stdout --motd=/motd"
|
||||
|
||||
matterbridge:
|
||||
build: https://gitea.demb.uk/third-party-mirrors/matterbridge.git#v1.26.0
|
||||
image: matterbridge
|
||||
restart: unless-stopped
|
||||
secrets:
|
||||
- source: matterbridge-config
|
||||
target: /etc/matterbridge/matterbridge.toml
|
||||
volumes:
|
||||
- ./matterbridge/matterbridge.toml:/etc/matterbridge/matterbridge.toml:ro
|
||||
- ./ssh-chat/motd:/motd:ro
|
||||
- ./ssh-chat/admins:/admins:ro
|
||||
environment:
|
||||
- MATTERBRIDGE_DISCORD_MYDISCORD_TOKEN # Expected to be found in ./.env
|
||||
depends_on:
|
||||
@@ -38,13 +37,8 @@ services:
|
||||
|
||||
volumes:
|
||||
ts3-vol:
|
||||
external: true
|
||||
|
||||
secrets:
|
||||
chatkey:
|
||||
file: ./id_ed25516
|
||||
admins:
|
||||
file: ./ssh-chat/admins
|
||||
motd:
|
||||
file: ./ssh-chat/motd
|
||||
matterbridge-config:
|
||||
file: ./matterbridge/matterbridge.toml
|
||||
Reference in new issue
Block a user