Files
e-tib.com/docker-compose.dev.yml
Marc Mintel 85bac72f95
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 19s
Build & Deploy / 🧪 QA (push) Successful in 1m20s
Build & Deploy / 🏗️ Build (push) Successful in 2m38s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 51s
Build & Deploy / 🔔 Notify (push) Successful in 3s
feat(team): 3D carousel lightbox, mobile optimization and subtle E-TIB logo arcs
2026-08-12 15:43:53 +02:00

74 lines
1.8 KiB
YAML

services:
# Lightweight proxy: gives Caddy the labels to route etib.localhost → host Mac
etib-proxy:
image: alpine:latest
command: sleep infinity
restart: unless-stopped
networks:
- infra
- default
labels:
- "caddy=http://${TRAEFIK_HOST:-etib.localhost}, http://e-tib.localhost"
- "caddy.reverse_proxy=http://etib-app:3001"
extra_hosts:
- "host.docker.internal:host-gateway"
# Full Docker dev (use with `pnpm run dev:docker`)
etib-app:
build:
context: .
dockerfile: Dockerfile.dev
working_dir: /app
restart: unless-stopped
networks:
default:
infra:
aliases:
- etib-app
- etib.localhost
env_file:
- ${ENV_FILE:-.env}
environment:
NODE_ENV: development
# Force Garbage Collection before Docker kills the container (OOM)
NODE_OPTIONS: "--max-old-space-size=6144"
NEXT_TELEMETRY_DISABLED: "1"
NPM_TOKEN: ${NPM_TOKEN:-}
CI: "true"
HUSKY: "0"
WATCHPACK_POLLING: "true"
ports:
- "3001:3001"
volumes:
- .:/app
- etib_node_modules:/app/node_modules
- etib_next_cache:/app/.next
- etib_turbo_cache:/app/.turbo
- etib_pnpm_store:/pnpm
- /app/reference
- /app/data
deploy:
resources:
limits:
memory: 8G
command: >
sh -c "pnpm install --no-frozen-lockfile && pnpm next dev --webpack --hostname 0.0.0.0 --port 3001"
labels:
- "traefik.enable=true"
- "traefik.http.services.${PROJECT_NAME:-klz}-app-svc.loadbalancer.server.port=3001"
- "traefik.docker.network=infra"
networks:
default:
name: ${COMPOSE_PROJECT_NAME:-etib}-dev-internal
infra:
external: true
volumes:
etib_node_modules:
etib_next_cache:
etib_turbo_cache:
etib_pnpm_store: