directus
This commit is contained in:
@@ -7,17 +7,19 @@ services:
|
|||||||
- .:/app
|
- .:/app
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
|
# Docker Internal Communication
|
||||||
|
DIRECTUS_URL: http://directus:8055
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.klz-app-local.rule=Host(`klz.local`)"
|
- "traefik.http.routers.klz-app-local.rule=Host(`klz.localhost`)"
|
||||||
- "traefik.http.routers.klz-app-local.entrypoints=web"
|
- "traefik.http.routers.klz-app-local.entrypoints=web"
|
||||||
- "traefik.http.routers.klz-app-local.service=klz-cables"
|
- "traefik.http.routers.klz-app-local.service=klz-cables"
|
||||||
|
|
||||||
directus:
|
directus:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.klz-directus-local.rule=Host(`cms.klz.local`)"
|
- "traefik.http.routers.klz-directus-local.rule=Host(`cms.klz.localhost`)"
|
||||||
- "traefik.http.routers.klz-directus-local.entrypoints=web"
|
- "traefik.http.routers.klz-directus-local.entrypoints=web"
|
||||||
- "traefik.http.routers.klz-directus-local.service=klz-directus"
|
- "traefik.http.routers.klz-directus-local.service=klz-directus"
|
||||||
environment:
|
environment:
|
||||||
PUBLIC_URL: http://cms.klz.local
|
PUBLIC_URL: http://cms.klz.localhost
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
"name": "klz-cables-nextjs",
|
"name": "klz-cables-nextjs",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "docker network create infra 2>/dev/null || true && docker-compose up -d",
|
"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",
|
||||||
"dev:local": "next dev",
|
"dev:local": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
@@ -70,4 +70,4 @@
|
|||||||
"pdf:datasheets:legacy": "tsx ./scripts/generate-pdf-datasheets-pdf-lib.ts"
|
"pdf:datasheets:legacy": "tsx ./scripts/generate-pdf-datasheets-pdf-lib.ts"
|
||||||
},
|
},
|
||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user