mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-20 06:35:23 +02:00
- Removed the external dokploy-network configuration from various services' docker-compose.yml files to streamline network management. - This change simplifies the setup and ensures consistency across blueprints.
38 lines
892 B
YAML
38 lines
892 B
YAML
services:
|
|
app:
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
image: ghcr.io/logto-io/logto:1.27.0
|
|
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
|
|
ports:
|
|
- 3001
|
|
- 3002
|
|
|
|
environment:
|
|
TRUST_PROXY_HEADER: 1
|
|
DB_URL: postgres://logto:${LOGTO_POSTGRES_PASSWORD}@postgres:5432/logto
|
|
ENDPOINT: ${LOGTO_ENDPOINT}
|
|
ADMIN_ENDPOINT: ${LOGTO_ADMIN_ENDPOINT}
|
|
volumes:
|
|
- logto-connectors:/etc/logto/packages/core/connectors
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
user: postgres
|
|
|
|
environment:
|
|
POSTGRES_USER: logto
|
|
POSTGRES_PASSWORD: ${LOGTO_POSTGRES_PASSWORD}
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
|
|
volumes:
|
|
logto-connectors:
|
|
postgres-data:
|