Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathia4bc596b66c1
diff --git a/server/compose.yaml b/server/compose.yaml
index 727d1f8d77..3702ecab2c 100644
--- a/server/compose.yaml
+++ b/server/compose.yaml
@@ -1,5 +1,4 @@
-# Please note that the below docker compose is NOT directly
-# meant to be copy pasted and deployed to production.
+# Sample docker compose file, not meant for production use.
services:
museum:
build:
@@ -81,17 +80,30 @@ services:
depends_on:
- minio
volumes:
- - ./scripts/compose/minio-provision.sh:/provision.sh:ro
- minio-data:/data
networks:
- internal
- entrypoint: sh /provision.sh
+ entrypoint: |
+ sh -c '
+ #!/bin/sh
+
+ while ! mc config host add h0 http://minio:3200 changeme changeme1234
+ 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
+ '
volumes:
custom-logs:
postgres-data:
minio-data:
-
networks:
internal:
diff --git a/server/docs/docker.md b/server/docs/docker.md
index 4b3c126cd8..c1233cc2f2 100644
--- a/server/docs/docker.md
+++ b/server/docs/docker.md
@@ -23,9 +23,6 @@ require you to clone the repository or build any images.
# scripts/compose/credentials.yaml
curl -LO https://raw.githubusercontent.com/ente-io/ente/main/server/scripts/compose/credentials.yaml
- # scripts/compose/minio-provision.sh
- curl -LO https://raw.githubusercontent.com/ente-io/ente/main/server/scripts/compose/minio-provision.sh
-
cd ../..
```
diff --git a/server/docs/publish.md b/server/docs/publish.md
index 0c6ee2e4f5..04b1171fcc 100644
--- a/server/docs/publish.md
+++ b/server/docs/publish.md
@@ -16,7 +16,7 @@ use this new image (see [deploy/README](../scripts/deploy/README.md)).
## External
-Periodically, we can republish a new image from an existing known-to-be-good
+Periodically, we republish a new image from an existing known-to-be-good
commit to the GitHub Container Registry (GHCR) so that it can be used by folks
without needing to clone our repository just for building an image. For more
details about the use case, see [docker.md](docker.md).
diff --git a/server/scripts/compose/README.md b/server/scripts/compose/README.md
index e9593ac806..688e306a7c 100644
--- a/server/scripts/compose/README.md
+++ b/server/scripts/compose/README.md
@@ -1,6 +1,8 @@
A variant docker compose file that does not require cloning the repository, and
instead uses pre-built images.
+**TODO: Not done yet, a future standalone compose file will live here.**
+
### Details
This folder contains a `compose.yaml` file that is a variant of the top level
@@ -16,5 +18,5 @@ This folder contains a `compose.yaml` file that is a variant of the top level
For more details about how to use it, see [docker.md](../../docs/docker.md).
-This folder also contains some other files that are required by (both) these
+This folder also contains a credentials file that is required by (both) these
docker compose files.
diff --git a/server/scripts/compose/minio-provision.sh b/server/scripts/compose/minio-provision.sh
deleted file mode 100755
index ae60318804..0000000000
--- a/server/scripts/compose/minio-provision.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# Script used to prepare the minio instance that runs as part of the development
-# Docker compose cluster.
-
-while ! mc config host add h0 http://minio:3200 changeme changeme1234
-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