refactor: rename app service to klz-app and establish a new internal Docker network for service communication.
Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 34s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m31s
Build & Deploy KLZ Cables / 🏗️ Build Gatekeeper (push) Successful in 20s
Build & Deploy KLZ Cables / 🏗️ Build App (push) Successful in 9m37s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Successful in 1m41s
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Failing after 3m6s
Build & Deploy KLZ Cables / 🔔 Notifications (push) Successful in 2s
Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 34s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m31s
Build & Deploy KLZ Cables / 🏗️ Build Gatekeeper (push) Successful in 20s
Build & Deploy KLZ Cables / 🏗️ Build App (push) Successful in 9m37s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Successful in 1m41s
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Failing after 3m6s
Build & Deploy KLZ Cables / 🔔 Notifications (push) Successful in 2s
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
klz-app:
|
||||||
image: registry.infra.mintel.me/mintel/klz-cables.com:${IMAGE_TAG:-latest}
|
image: registry.infra.mintel.me/mintel/klz-cables.com:${IMAGE_TAG:-latest}
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- infra
|
- default
|
||||||
env_file:
|
env_file:
|
||||||
- ${ENV_FILE:-.env}
|
- ${ENV_FILE:-.env}
|
||||||
labels:
|
labels:
|
||||||
@@ -13,11 +13,12 @@ services:
|
|||||||
image: varnish:7
|
image: varnish:7
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
- default
|
||||||
- infra
|
- infra
|
||||||
volumes:
|
volumes:
|
||||||
- ./varnish/default.vcl:/etc/varnish/default.vcl:ro
|
- ./varnish/default.vcl:/etc/varnish/default.vcl:ro
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /var/lib/varnish:exec
|
- /var/lib/varnish:exec,mode=1777
|
||||||
environment:
|
environment:
|
||||||
VARNISH_SIZE: ${VARNISH_CACHE_SIZE:-256M}
|
VARNISH_SIZE: ${VARNISH_CACHE_SIZE:-256M}
|
||||||
labels:
|
labels:
|
||||||
@@ -59,6 +60,7 @@ services:
|
|||||||
container_name: ${PROJECT_NAME:-klz-cables}-gatekeeper
|
container_name: ${PROJECT_NAME:-klz-cables}-gatekeeper
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
- default
|
||||||
- infra
|
- infra
|
||||||
env_file:
|
env_file:
|
||||||
- ${ENV_FILE:-.env}
|
- ${ENV_FILE:-.env}
|
||||||
@@ -72,6 +74,7 @@ services:
|
|||||||
image: directus/directus:11
|
image: directus/directus:11
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
- default
|
||||||
- infra
|
- infra
|
||||||
env_file:
|
env_file:
|
||||||
- ${ENV_FILE:-.env}
|
- ${ENV_FILE:-.env}
|
||||||
@@ -108,7 +111,7 @@ services:
|
|||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- infra
|
- default
|
||||||
env_file:
|
env_file:
|
||||||
- ${ENV_FILE:-.env}
|
- ${ENV_FILE:-.env}
|
||||||
environment:
|
environment:
|
||||||
@@ -119,6 +122,8 @@ services:
|
|||||||
- directus-db-data:/var/lib/postgresql/data
|
- directus-db-data:/var/lib/postgresql/data
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
default:
|
||||||
|
name: ${PROJECT_NAME:-klz-cables}-internal
|
||||||
infra:
|
infra:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
"name": "klz-cables-nextjs",
|
"name": "klz-cables-nextjs",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "docker network create infra 2>/dev/null || true && echo '\\n🚀 Development Environment Starting...\\n\\n📱 App: http://klz.localhost\\n🗄️ CMS: http://cms.klz.localhost/admin\\n🚦 Traefik: http://localhost:8080\\n\\n(Press Ctrl+C to stop)\\n' && docker-compose down --remove-orphans && docker-compose up app directus directus-db",
|
"dev": "docker network create infra 2>/dev/null || true && echo '\\n🚀 Development Environment Starting...\\n\\n📱 App: http://klz.localhost\\n🗄️ CMS: http://cms.klz.localhost/admin\\n🚦 Traefik: http://localhost:8080\\n\\n(Press Ctrl+C to stop)\\n' && docker-compose down --remove-orphans && docker-compose up klz-app directus directus-db",
|
||||||
"dev:local": "next dev",
|
"dev:local": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ vcl 4.1;
|
|||||||
import std;
|
import std;
|
||||||
|
|
||||||
backend default {
|
backend default {
|
||||||
.host = "app";
|
.host = "klz-app";
|
||||||
.port = "3000";
|
.port = "3000";
|
||||||
.first_byte_timeout = 60s;
|
.first_byte_timeout = 60s;
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,6 @@ backend default {
|
|||||||
acl purge {
|
acl purge {
|
||||||
"localhost";
|
"localhost";
|
||||||
"127.0.0.1";
|
"127.0.0.1";
|
||||||
"infra"; # Allow purge from within the infra network
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub vcl_recv {
|
sub vcl_recv {
|
||||||
|
|||||||
Reference in New Issue
Block a user