From 9003e43702ec01d37eeb8cdac8a2b8d306894053 Mon Sep 17 00:00:00 2001 From: DrMxrcy Date: Thu, 21 Nov 2024 01:54:15 -0500 Subject: [PATCH] fix(template): InvoiceShelf Naming --- .../templates/invoiceshelf/docker-compose.yml | 24 +++++++++++-------- apps/dokploy/templates/invoiceshelf/index.ts | 2 +- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/apps/dokploy/templates/invoiceshelf/docker-compose.yml b/apps/dokploy/templates/invoiceshelf/docker-compose.yml index ac4c8d264..5afdd1526 100644 --- a/apps/dokploy/templates/invoiceshelf/docker-compose.yml +++ b/apps/dokploy/templates/invoiceshelf/docker-compose.yml @@ -1,12 +1,12 @@ version: "3.8" services: - invoiceshelf_db: + invoiceshelf-postgres: image: postgres:15 networks: - dokploy-network volumes: - - postgres_data:/var/lib/postgresql/data + - invoiceshelf-postgres-data:/var/lib/postgresql/data environment: - POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_USER=${DB_USERNAME} @@ -17,13 +17,13 @@ services: timeout: 5s retries: 5 - invoiceshelf: + invoiceshelf-app: image: invoiceshelf/invoiceshelf:latest networks: - dokploy-network volumes: - - app_data:/data - - app_conf:/conf + - invoiceshelf-app-data:/data + - invoiceshelf-app-conf:/conf environment: - PHP_TZ=UTC - TIMEZONE=UTC @@ -32,7 +32,7 @@ services: - APP_DEBUG=false - APP_URL=http://${INVOICESHELF_HOST} - DB_CONNECTION=pgsql - - DB_HOST=invoiceshelf_db + - DB_HOST=invoiceshelf-postgres - DB_PORT=5432 - DB_DATABASE=${DB_DATABASE} - DB_USERNAME=${DB_USERNAME} @@ -46,10 +46,14 @@ services: - SANCTUM_STATEFUL_DOMAINS=${INVOICESHELF_HOST} - STARTUP_DELAY=10 depends_on: - invoiceshelf_db: + invoiceshelf-postgres: condition: service_healthy +networks: + dokploy-network: + external: true + volumes: - postgres_data: - app_data: - app_conf: \ No newline at end of file + invoiceshelf-postgres-data: + invoiceshelf-app-data: + invoiceshelf-app-conf: \ No newline at end of file diff --git a/apps/dokploy/templates/invoiceshelf/index.ts b/apps/dokploy/templates/invoiceshelf/index.ts index d8ae8f63a..a83ebf07a 100644 --- a/apps/dokploy/templates/invoiceshelf/index.ts +++ b/apps/dokploy/templates/invoiceshelf/index.ts @@ -16,7 +16,7 @@ export function generate(schema: Schema): Template { { host: mainDomain, port: 80, - serviceName: "invoiceshelf", + serviceName: "invoiceshelf-app", }, ];