From 31b9b4069380238ed6530378ff999088ad83f6c5 Mon Sep 17 00:00:00 2001 From: Hane Date: Thu, 11 Jun 2026 17:12:30 +0200 Subject: [PATCH] wip: enabled Ente --- compose/ente/.gitignore | 1 + compose/ente/compose.yaml | 115 ++++++++++++++++++++++++++++ compose/ente/sample.env | 10 +++ compose/ente/webphotos-compose.yaml | 19 +++++ 4 files changed, 145 insertions(+) create mode 100644 compose/ente/.gitignore create mode 100644 compose/ente/compose.yaml create mode 100644 compose/ente/sample.env create mode 100644 compose/ente/webphotos-compose.yaml diff --git a/compose/ente/.gitignore b/compose/ente/.gitignore new file mode 100644 index 0000000..b3ad68f --- /dev/null +++ b/compose/ente/.gitignore @@ -0,0 +1 @@ +legacy/* diff --git a/compose/ente/compose.yaml b/compose/ente/compose.yaml new file mode 100644 index 0000000..d38a05d --- /dev/null +++ b/compose/ente/compose.yaml @@ -0,0 +1,115 @@ +name: "ente" + +#x-lockdown: &lockdown + # prevents write access to the image itself +# read_only: true + # prevents any process within the container to gain more privileges +# security_opt: +# - "no-new-privileges=true" + +services: + server: + #container_name: "ente-server" + depends_on: + postgres: + #condition: "service_healthy" + restart: true + minio: + #condition: "service_healthy" + restart: true + mc: + condition: service_completed_successfully + image: "11notes/ente:2026.03.23" + #<<: *lockdown + environment: + TZ: "Europe/Madrid" + POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" + MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}" + volumes: + - "server.etc:/ente/etc" + ports: + - "3001:8080/tcp" + networks: + frontend: + backend: + restart: "always" + + postgres: + image: "11notes/postgres:18" + name: "ente_postgres_1" + #<<: *lockdown + environment: + TZ: "Europe/Madrid" + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + # make a full and compressed database backup each day at 03:00 + POSTGRES_BACKUP_SCHEDULE: "0 3 * * *" + # only keep the last five backups + POSTGRES_BACKUP_RETENTION: 5 + ports: + - "5432:5432/tcp" + networks: + backend: + volumes: + - "postgres.etc:/postgres/etc" + - "postgres.var:/postgres/var" + - "postgres.backup:/postgres/backup" + #tmpfs: + # needed for read-only + #- "/postgres/run:uid=1000,gid=1000" + #- "/postgres/log:uid=1000,gid=1000" + restart: "always" + + minio: + # for more information about this image checkout: + # https://github.com/11notes/docker-minio + image: "11notes/minio:2025.10.15" + hostname: "minio" + #<<: *lockdown + environment: + TZ: "Europe/Madrid" + MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}" + command: "/mnt" + ports: + - "3000:9001/tcp" + - "9000:9000/tcp" + volumes: + - "minio.var:/mnt" + networks: + backend: + restart: "always" + + mc: + #container_name: "mcc" + # for more information about this image checkout: + # https://github.com/11notes/docker-mc + depends_on: + minio: + #condition: "service_healthy" + restart: true + image: "11notes/mc:2025.08.13" + #<<: *lockdown + environment: + TZ: "Europe/Madrid" + MC_MINIO_URL: "https://minio:9000" + MC_MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}" + MC_INSECURE: true + command: + - mb --ignore-existing minio/ente + volumes: + - "mc.etc:/mc/etc" + networks: + backend: + restart: "no" + +volumes: + server.etc: + postgres.etc: + postgres.var: + postgres.backup: + minio.var: + mc.etc: + +networks: + frontend: + backend: + internal: true \ No newline at end of file diff --git a/compose/ente/sample.env b/compose/ente/sample.env new file mode 100644 index 0000000..79e2e10 --- /dev/null +++ b/compose/ente/sample.env @@ -0,0 +1,10 @@ +#Postgres env +POSTGRES_HOST=192.168.1.45 +POSTGRES_PORT=5432 +POSTGRES_DATABASE=ente +POSTGRES_USER=ente +POSTGRES_PASSWORD=enteroot + +#MinIO env +MINIO_ROOT_PASSWORD=minioroot +MINIO_BUCKET=bucket \ No newline at end of file diff --git a/compose/ente/webphotos-compose.yaml b/compose/ente/webphotos-compose.yaml new file mode 100644 index 0000000..729c999 --- /dev/null +++ b/compose/ente/webphotos-compose.yaml @@ -0,0 +1,19 @@ +name: "ente-photos-portal" + +services: + photos: + image: "ghcr.io/ente-io/web:78c36c8966bd490bf1785e3bee0b2cb322f9e66b" + ports: + - "3020:3000/tcp"#hotos + - "3011:3001/tcp"#ccounts + - "3012:3002/tcp"#lbums + - "3013:3003/tcp"#uth + - "3014:3004/tcp"#ast + - "3015:3005/tcp"#hare + - "3016:3006/tcp"#mbed + - "3018:3008/tcp"#aste + - "3019:3009/tcp"#ocker + - "3010:3010/tcp"#emories + environment: + ENTE_API_ORIGIN=http://192.168.1.45:3001 + \ No newline at end of file