mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-16 03:15:23 +02:00
- Bump image from v0.135.0-postgres to v0.162.6 (upstream dropped the
-postgres tag suffix after v0.146.0; plain tags are the postgres build)
- Remove the db-migration service: the standalone image runs database
migrations automatically on boot (auto-start-migrations), matching the
official docker-compose.prod.yml which no longer ships that service
- Generate ENCRYPTION_KEY (${hash:32}) and AUTH_SECRET (${base64:32})
per deployment instead of shipping hardcoded example secrets
- Fix SITE_URL to http://${main_domain} (no :8080; the domain is proxied)
- Refresh SMTP env names (SMTP_FROM_ADDRESS/SMTP_FROM_NAME; SMTP_SECURE
was removed upstream) and drop unused CLIENT_* env placeholders that
were never passed to the container
Closes #215
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
services:
|
|
backend:
|
|
image: infisical/infisical:v0.162.6
|
|
restart: unless-stopped
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
environment:
|
|
- NODE_ENV=production
|
|
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
|
- AUTH_SECRET=${AUTH_SECRET}
|
|
- SITE_URL=${SITE_URL}
|
|
- DB_CONNECTION_URI=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
|
|
- REDIS_URL=redis://redis:6379
|
|
- SMTP_HOST=${SMTP_HOST}
|
|
- SMTP_PORT=${SMTP_PORT}
|
|
- SMTP_FROM_ADDRESS=${SMTP_FROM_ADDRESS}
|
|
- SMTP_FROM_NAME=${SMTP_FROM_NAME}
|
|
- SMTP_USERNAME=${SMTP_USERNAME}
|
|
- SMTP_PASSWORD=${SMTP_PASSWORD}
|
|
|
|
redis:
|
|
image: redis:7.4.1
|
|
restart: always
|
|
volumes:
|
|
- redis_infisical_data:/data
|
|
|
|
db:
|
|
image: postgres:14-alpine
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
volumes:
|
|
- pg_infisical_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: "pg_isready --username=${POSTGRES_USER} && psql --username=${POSTGRES_USER} --list"
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 10
|
|
|
|
volumes:
|
|
pg_infisical_data:
|
|
redis_infisical_data:
|