Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Move config inline

Manav Rathi4cdc72bc2987
diff --git a/server/compose.yaml b/server/compose.yaml
index 175ba7f21a..1932b3fab1 100644
--- a/server/compose.yaml
+++ b/server/compose.yaml
@@ -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: