fix(template): Slash Naming Schema

This commit is contained in:
DrMxrcy
2024-11-21 01:56:22 -05:00
parent be8bd78bcc
commit 204143648d
2 changed files with 13 additions and 9 deletions

View File

@@ -1,26 +1,26 @@
version: "3.8" version: "3.8"
services: services:
slash: slash-app:
image: yourselfhosted/slash:latest image: yourselfhosted/slash:latest
networks: networks:
- dokploy-network - dokploy-network
volumes: volumes:
- slash_data:/var/opt/slash - slash-app-data:/var/opt/slash
environment: environment:
- SLASH_DRIVER=postgres - SLASH_DRIVER=postgres
- SLASH_DSN=postgresql://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_NAME}?sslmode=disable - SLASH_DSN=postgresql://${DB_USER}:${DB_PASSWORD}@slash-postgres:5432/${DB_NAME}?sslmode=disable
depends_on: depends_on:
db: slash-postgres:
condition: service_healthy condition: service_healthy
restart: unless-stopped restart: unless-stopped
db: slash-postgres:
image: postgres:16-alpine image: postgres:16-alpine
networks: networks:
- dokploy-network - dokploy-network
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - slash-postgres-data:/var/lib/postgresql/data
environment: environment:
- POSTGRES_USER=${DB_USER} - POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_PASSWORD=${DB_PASSWORD}
@@ -32,6 +32,10 @@ services:
retries: 5 retries: 5
restart: unless-stopped restart: unless-stopped
networks:
dokploy-network:
external: true
volumes: volumes:
slash_data: slash-app-data:
postgres_data: slash-postgres-data:

View File

@@ -16,7 +16,7 @@ export function generate(schema: Schema): Template {
{ {
host: mainDomain, host: mainDomain,
port: 5231, port: 5231,
serviceName: "slash", serviceName: "slash-app",
}, },
]; ];