π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[server] Remove extra container by using a post_start lifecycle hook
Manav Rathic329b30e49fd
diff --git a/docs/docs/.vitepress/sidebar.ts b/docs/docs/.vitepress/sidebar.tsindex 40123e4795..7e25c3c132 100644--- a/docs/docs/.vitepress/sidebar.ts+++ b/docs/docs/.vitepress/sidebar.ts@@ -311,6 +311,10 @@ export const sidebar = [text: "Uploads",link: "/self-hosting/troubleshooting/uploads",},+ {+ text: "Docker",+ link: "/self-hosting/troubleshooting/docker",+ },{text: "Yarn",link: "/self-hosting/troubleshooting/yarn",diff --git a/docs/docs/self-hosting/troubleshooting/docker.md b/docs/docs/self-hosting/troubleshooting/docker.mdnew file mode 100644index 0000000000..4c0a3bd0ef--- /dev/null+++ b/docs/docs/self-hosting/troubleshooting/docker.md@@ -0,0 +1,50 @@+---+title: Docker errors+description: Fixing docker related errors when trying to self host Ente+---++# Docker++The `server/compose.yaml` Docker compose file uses the "post_start" lifecycle+hook to provision the MinIO instance.++The lifecycle hook **requires Docker Compose version 2.30.0+**, and if you're+using an older version of docker compose you will see an error like this:++```+validating compose.yaml: services.minio Additional property post_start is not allowed+```++The easiest way to resolve this is to upgrade your Docker compose.++If you cannot update your Docker compose version, then alternatively you can+perform the same configuration by removing the "post_start" hook, and adding a+new service definition:+++```yaml+ minio-provision:+ image: minio/mc+ depends_on:+ - minio+ volumes:+ - minio-data:/data+ networks:+ - internal+ 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+ '+```diff --git a/docs/docs/self-hosting/troubleshooting/yarn.md b/docs/docs/self-hosting/troubleshooting/yarn.mdindex a1905af99f..b4205beb0e 100644--- a/docs/docs/self-hosting/troubleshooting/yarn.md+++ b/docs/docs/self-hosting/troubleshooting/yarn.md@@ -5,7 +5,8 @@ description: Fixing yarn install errors when trying to self host Ente# Yarn-If your `yarn install` is failing, make sure you are using Yarn Classic+If your `yarn install` is failing, make sure you are using Yarn v1 (also known+as "Yarn Classic"):- https://classic.yarnpkg.com/lang/en/docs/installdiff --git a/server/compose.yaml b/server/compose.yamlindex 3702ecab2c..175ba7f21a 100644--- a/server/compose.yaml+++ b/server/compose.yaml@@ -60,45 +60,34 @@ services:minio:image: minio/minio- # Use different ports than the minio defaults to avoid conflicting- # with the ports used by Prometheus.ports:- - 3200:3200 # API- - 3201:3201 # Console+ - 3200:3200 # MinIO API+ - 3201:3201 # MinIO Consoleenvironment:MINIO_ROOT_USER: changemeMINIO_ROOT_PASSWORD: changeme1234- # Tweak this command to match the above port changes.command: server /data --address ":3200" --console-address ":3201"volumes:- minio-data:/datanetworks:- internal+ post_start:+ - command: |+ sh -c '+ #!/bin/sh- minio-provision:- image: minio/mc- depends_on:- - minio- volumes:- - minio-data:/data- networks:- - internal- 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+ 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+ cd /data- mc mb -p b2-eu-cen- mc mb -p wasabi-eu-central-2-v3- mc mb -p scw-eu-fr-v3- '+ mc mb -p b2-eu-cen+ mc mb -p wasabi-eu-central-2-v3+ mc mb -p scw-eu-fr-v3+ 'volumes:custom-logs: