mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: Add extensive collection of application blueprints with Docker Compose configurations
This commit is contained in:
40
blueprints/logto/docker-compose.yml
Normal file
40
blueprints/logto/docker-compose.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
services:
|
||||
app:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
image: svhd/logto:1.22.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
|
||||
|
||||
networks:
|
||||
dokploy-network:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
logto-connectors:
|
||||
postgres-data:
|
||||
BIN
blueprints/logto/logto.png
Normal file
BIN
blueprints/logto/logto.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
20
blueprints/logto/template.yml
Normal file
20
blueprints/logto/template.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
variables:
|
||||
main_domain: ${randomDomain}
|
||||
admin_domain: ${randomDomain}
|
||||
postgres_password: ${password}
|
||||
|
||||
config:
|
||||
domains:
|
||||
- serviceName: app
|
||||
port: 3001
|
||||
host: ${main_domain}
|
||||
- serviceName: app
|
||||
port: 3002
|
||||
host: ${admin_domain}
|
||||
|
||||
env:
|
||||
LOGTO_ENDPOINT: http://${admin_domain}
|
||||
LOGTO_ADMIN_ENDPOINT: http://${admin_domain}
|
||||
LOGTO_POSTGRES_PASSWORD: ${postgres_password}
|
||||
|
||||
mounts: []
|
||||
Reference in New Issue
Block a user