mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-22 22:02:29 +03:00
88 lines
2.5 KiB
YAML
88 lines
2.5 KiB
YAML
version: '3.7'
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: mailflow_frontend_1
|
|
APP_PORT: 80
|
|
|
|
frontend:
|
|
image: ghcr.io/maathimself/mailflow-frontend:4.3.1@sha256:3c8a42715cec8726bd370f4e724d630a4f2271ca95d25dcf92fa34956a9803f6
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO/dev/null http://127.0.0.1:80/ || exit 1"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|
|
|
|
backend:
|
|
image: ghcr.io/maathimself/mailflow-backend:4.3.1@sha256:36d35701354936797edb92b30ad6a998d52fcad03dace08e758a5bdd2a86e943
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
environment:
|
|
NODE_ENV: production
|
|
PORT: 3000
|
|
APP_URL: "http://${DEVICE_DOMAIN_NAME}:3395"
|
|
FRONTEND_URL: "http://${DEVICE_DOMAIN_NAME}:3395"
|
|
SESSION_SECRET: "${APP_SEED}"
|
|
ENCRYPTION_KEY: "${APP_SEED}"
|
|
DB_HOST: mailflow_postgres_1
|
|
DB_PORT: 5432
|
|
DB_NAME: mailflow
|
|
DB_USER: mailflow
|
|
DB_PASSWORD: mailflow
|
|
REDIS_URL: redis://mailflow_redis_1:6379
|
|
GOOGLE_CLIENT_ID: ""
|
|
GOOGLE_CLIENT_SECRET: ""
|
|
VAPID_PUBLIC_KEY: ""
|
|
VAPID_PRIVATE_KEY: ""
|
|
VAPID_SUBJECT: ""
|
|
IMAP_MAX_PERSISTENT_PER_HOST: ""
|
|
TRUST_PROXY_HOPS: 2
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/api/health || exit 1"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
postgres:
|
|
image: postgres:16-alpine@sha256:16bc17c64a573ef34162af9298258d1aec548232985b33ed7b1eac33ba35c229
|
|
user: "1000:1000"
|
|
restart: on-failure
|
|
environment:
|
|
POSTGRES_DB: mailflow
|
|
POSTGRES_USER: mailflow
|
|
POSTGRES_PASSWORD: mailflow
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U mailflow -d mailflow"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
|
|
redis:
|
|
image: redis:7-alpine@sha256:6ab0b6e7381779332f97b8ca76193e45b0756f38d4c0dcda72dbb3c32061ab99
|
|
user: "1000:1000"
|
|
restart: on-failure
|
|
command: redis-server --save 60 1 --loglevel warning
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/redis:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 5
|
|
start_period: 10s
|