Skip to content

armgit / ente

Public Imported from GitHub
0

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

ditto and swap

Manav Rathi6d3cb97ab0ef
diff --git a/server/quickstart/compose.yaml b/server/quickstart/compose.yaml
new file mode 100644
index 0000000000..cb44abea73
--- /dev/null
+++ b/server/quickstart/compose.yaml
@@ -0,0 +1,103 @@
+# Sample docker compose file, not meant for production use.
+
+services:
+ museum:
+ image: ghcr.io/ente-io/server
+ ports:
+ - 8080:8080 # API
+ depends_on:
+ postgres:
+ condition: service_healthy
+ environment:
+ ENTE_CREDENTIALS_FILE: /credentials.yaml
+ configs:
+ - source: credentials_yaml
+ target: /credentials.yaml
+ volumes:
+ - ./museum.yaml:/museum.yaml:ro
+ - ./data:/data:ro
+
+ # Resolve "localhost:3200" in the museum container to the minio container.
+ socat:
+ image: alpine/socat
+ network_mode: service:museum
+ depends_on:
+ - museum
+ command: "TCP-LISTEN:3200,fork,reuseaddr TCP:minio:3200"
+
+ postgres:
+ image: postgres:15
+ environment:
+ POSTGRES_USER: pguser
+ POSTGRES_PASSWORD: pgpass
+ POSTGRES_DB: ente_db
+ healthcheck:
+ test: pg_isready -q -d ente_db -U pguser
+ start_period: 40s
+ start_interval: 1s
+ volumes:
+ - postgres-data:/var/lib/postgresql/data
+
+ minio:
+ image: minio/minio
+ ports:
+ - 3200:3200 # MinIO API
+ environment:
+ MINIO_ROOT_USER: changeme
+ MINIO_ROOT_PASSWORD: changeme1234
+ command: server /data --address ":3200" --console-address ":3201"
+ volumes:
+ - minio-data:/data
+ post_start:
+ - command: |
+ sh -c '
+ #!/bin/sh
+
+ while ! mc config host add h0 http://minio:3200 changeme changeme1234 2>/dev/null
+ do
+ echo "Waiting for minio..."
+ sleep 0.5
+ done
+
+ cd /data
+
+ mc mb -p b2-eu-cen
+ mc mb -p wasabi-eu-central-2-v3
+ 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:
+ postgres-data:
+ minio-data: