fix: docker compose up voor development
Spint enkel de nodige containers op voor development. Anders gebruik -f compose.stating.yml of compose.production.yml
This commit is contained in:
parent
06b5a93cef
commit
7a657c9b86
3 changed files with 42 additions and 19 deletions
|
@ -1,72 +0,0 @@
|
|||
#
|
||||
# Use this configuration to test the production configuration locally.
|
||||
#
|
||||
# This configuration builds the frontend and backend services as Docker images,
|
||||
# and uses the paths for the services, instead of ports.
|
||||
#
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: frontend/Dockerfile
|
||||
ports:
|
||||
- '8080:8080/tcp'
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- 'traefik.http.routers.web.rule=PathPrefix(`/`)'
|
||||
- 'traefik.http.services.web.loadbalancer.server.port=8080'
|
||||
|
||||
api:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: backend/Dockerfile
|
||||
ports:
|
||||
- '3000:3000/tcp'
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./backend/.env:/app/.env
|
||||
depends_on:
|
||||
- db
|
||||
- logging
|
||||
labels:
|
||||
- 'traefik.http.routers.api.rule=PathPrefix(`/api`)'
|
||||
- 'traefik.http.services.api.loadbalancer.server.port=3000'
|
||||
|
||||
idp:
|
||||
# Also see compose.yml
|
||||
labels:
|
||||
- 'traefik.http.routers.idp.rule=PathPrefix(`/idp`)'
|
||||
- 'traefik.http.services.idp.loadbalancer.server.port=7080'
|
||||
environment:
|
||||
PROXY_ADDRESS_FORWARDING: 'true'
|
||||
KC_HTTP_RELATIVE_PATH: '/idp'
|
||||
|
||||
reverse-proxy:
|
||||
image: traefik:v3.3
|
||||
command:
|
||||
# Enable web UI
|
||||
- '--api.insecure=true'
|
||||
|
||||
# Add Docker provider
|
||||
- '--providers.docker=true'
|
||||
- '--providers.docker.exposedbydefault=true'
|
||||
|
||||
# Add web entrypoint
|
||||
- '--entrypoints.web.address=:80/tcp'
|
||||
ports:
|
||||
- '9000:8080'
|
||||
- '80:80/tcp'
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
|
||||
dashboards:
|
||||
image: grafana/grafana:latest
|
||||
ports:
|
||||
- '9002:3000'
|
||||
volumes:
|
||||
- dwengo_grafana_data:/var/lib/grafana
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
dwengo_grafana_data:
|
Loading…
Add table
Add a link
Reference in a new issue