zer0 revised this gist 6 months ago. Go to revision
No changes
zer0 revised this gist 6 months ago. Go to revision
2 files changed, 100 insertions
compose.yaml(file created)
| @@ -0,0 +1,43 @@ | |||
| 1 | + | services: | |
| 2 | + | museum: | |
| 3 | + | image: ghcr.io/ente-io/server@sha256:61245410ae7b8755b631e6d85cff402eb123285e4abbfffbed7b78d75d68d725 | |
| 4 | + | ports: | |
| 5 | + | - 127.0.0.1:27159:8080 # API | |
| 6 | + | restart: unless-stopped | |
| 7 | + | depends_on: | |
| 8 | + | postgres: | |
| 9 | + | condition: service_healthy | |
| 10 | + | volumes: | |
| 11 | + | - ./museum.yaml:/museum.yaml:ro | |
| 12 | + | - ./data:/data:ro | |
| 13 | + | environment: | |
| 14 | + | NEXT_PUBLIC_ENTE_ENDPOINT: https://api.pics.doma.in | |
| 15 | + | ||
| 16 | + | web: | |
| 17 | + | image: ghcr.io/ente-io/web@sha256:84be8962c1046842b23420823a0fb579bbf3b46463aa549bfdfed98f99c28f38 | |
| 18 | + | restart: unless-stopped | |
| 19 | + | ports: | |
| 20 | + | - 127.0.0.1:28021:3000 # Photos web app | |
| 21 | + | - 127.0.0.1:11659:3001 # Accounts | |
| 22 | + | - 127.0.0.1:51370:3002 # Public albums | |
| 23 | + | - 127.0.0.1:59049:3003 # Auth | |
| 24 | + | - 127.0.0.1:10858:3004 # Cast | |
| 25 | + | environment: | |
| 26 | + | ENTE_API_ORIGIN: https://api.pics.doma.in | |
| 27 | + | ENTE_ALBUMS_ORIGIN: https://share.pics.doma.in | |
| 28 | + | NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT: https://share.pics.doma.in | |
| 29 | + | ||
| 30 | + | postgres: | |
| 31 | + | image: postgres@sha256:f57a3bdbf044f0b213fdc99f35a0d21c401608bf41f063176ec00c51df9655f7 | |
| 32 | + | restart: unless-stopped | |
| 33 | + | environment: | |
| 34 | + | POSTGRES_USER: pguser | |
| 35 | + | POSTGRES_PASSWORD: password | |
| 36 | + | POSTGRES_DB: ente_db | |
| 37 | + | healthcheck: | |
| 38 | + | test: pg_isready -q -d ente_db -U pguser | |
| 39 | + | start_period: 40s | |
| 40 | + | start_interval: 1s | |
| 41 | + | volumes: | |
| 42 | + | - ./db:/var/lib/postgresql/data | |
| 43 | + | ||
museum.yaml(file created)
| @@ -0,0 +1,57 @@ | |||
| 1 | + | key: | |
| 2 | + | encryption: key | |
| 3 | + | hash: hash | |
| 4 | + | ||
| 5 | + | jwt: | |
| 6 | + | secret: secret | |
| 7 | + | ||
| 8 | + | apps: | |
| 9 | + | public-albums: https://share.pics.doma.in | |
| 10 | + | cast: https://cast.pics.doma.in | |
| 11 | + | accounts: https://accounts.pics.doma.in | |
| 12 | + | ||
| 13 | + | db: | |
| 14 | + | host: postgres | |
| 15 | + | port: 5432 | |
| 16 | + | name: ente_db | |
| 17 | + | user: pguser | |
| 18 | + | password: password | |
| 19 | + | ||
| 20 | + | s3: | |
| 21 | + | are_local_buckets: false | |
| 22 | + | b2-eu-cen: | |
| 23 | + | key: keyid | |
| 24 | + | secret: secret | |
| 25 | + | endpoint: s3.eu-central-003.backblazeb2.com | |
| 26 | + | region: eu-central-003 | |
| 27 | + | bucket: somebucket | |
| 28 | + | ||
| 29 | + | smtp: | |
| 30 | + | host: some.host | |
| 31 | + | port: 587 | |
| 32 | + | username: user | |
| 33 | + | password: pass | |
| 34 | + | email: noreply@doma.in | |
| 35 | + | sender-name: Ente-Selfhosted | |
| 36 | + | ||
| 37 | + | webauthn: | |
| 38 | + | rpid: pics.doma.in | |
| 39 | + | rporigins: | |
| 40 | + | - "https://accounts.pics.doma.in" | |
| 41 | + | ||
| 42 | + | replication: | |
| 43 | + | enabled: false | |
| 44 | + | ||
| 45 | + | internal: | |
| 46 | + | silent: false | |
| 47 | + | health-check-url: https://some.url | |
| 48 | + | admin: id | |
| 49 | + | disable-registration: false | |
| 50 | + | ||
| 51 | + | jobs: | |
| 52 | + | cron: | |
| 53 | + | skip: false | |
| 54 | + | remove-unreported-objects: | |
| 55 | + | worker-count: 1 | |
| 56 | + | clear-orphan-objects: | |
| 57 | + | enabled: true | |
Newer
Older