Move config inline

This commit is contained in:
Manav Rathi 2025-03-19 20:09:23 +05:30
parent c329b30e49
commit 4cdc72bc29
No known key found for this signature in database

View File

@ -14,10 +14,12 @@ services:
environment:
# Pass-in the config to connect to the DB and MinIO
ENTE_CREDENTIALS_FILE: /credentials.yaml
configs:
- source: credentials_yaml
target: /credentials.yaml
volumes:
- custom-logs:/var/logs
- ./museum.yaml:/museum.yaml:ro
- ./scripts/compose/credentials.yaml:/credentials.yaml:ro
- ./data:/data:ro
networks:
- internal
@ -89,6 +91,38 @@ services:
mc mb -p scw-eu-fr-v3
'
configs:
credentials_yaml:
content: |
db:
host: postgres
port: 5432
name: ente_db
user: pguser
password: pgpass
s3:
are_local_buckets: true
b2-eu-cen:
key: changeme
secret: changeme1234
endpoint: localhost:3200
region: eu-central-2
bucket: b2-eu-cen
wasabi-eu-central-2-v3:
key: changeme
secret: changeme1234
endpoint: localhost:3200
region: eu-central-2
bucket: wasabi-eu-central-2-v3
compliance: false
scw-eu-fr-v3:
key: changeme
secret: changeme1234
endpoint: localhost:3200
region: eu-central-2
bucket: scw-eu-fr-v3
volumes:
custom-logs:
postgres-data: