diff --git a/apps/dokploy/templates/slash/docker-compose.yml b/apps/dokploy/templates/slash/docker-compose.yml index fce3114ef..75afc4783 100644 --- a/apps/dokploy/templates/slash/docker-compose.yml +++ b/apps/dokploy/templates/slash/docker-compose.yml @@ -1,26 +1,26 @@ version: "3.8" services: - slash: + slash-app: image: yourselfhosted/slash:latest networks: - dokploy-network volumes: - - slash_data:/var/opt/slash + - slash-app-data:/var/opt/slash environment: - 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: - db: + slash-postgres: condition: service_healthy restart: unless-stopped - db: + slash-postgres: image: postgres:16-alpine networks: - dokploy-network volumes: - - postgres_data:/var/lib/postgresql/data + - slash-postgres-data:/var/lib/postgresql/data environment: - POSTGRES_USER=${DB_USER} - POSTGRES_PASSWORD=${DB_PASSWORD} @@ -32,6 +32,10 @@ services: retries: 5 restart: unless-stopped +networks: + dokploy-network: + external: true + volumes: - slash_data: - postgres_data: \ No newline at end of file + slash-app-data: + slash-postgres-data: \ No newline at end of file diff --git a/apps/dokploy/templates/slash/index.ts b/apps/dokploy/templates/slash/index.ts index 4e05f74d9..ba614fd82 100644 --- a/apps/dokploy/templates/slash/index.ts +++ b/apps/dokploy/templates/slash/index.ts @@ -16,7 +16,7 @@ export function generate(schema: Schema): Template { { host: mainDomain, port: 5231, - serviceName: "slash", + serviceName: "slash-app", }, ];