2025SELab2-project-Dwengo/docker-compose.yml
Timo De Meyst d6a7cdf980 chore: update docker-compose
docker compose uitgebreidt om ook front- en backend docker images te builden
2025-03-07 16:10:18 +01:00

44 lines
1 KiB
YAML

services:
web:
build: ./frontend
depends_on:
- api
ports:
- "443:443"
- "80:80"
api:
build: ./backend
db:
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- '5431:5432'
volumes:
- dwengo_postgres_data:/var/lib/postgresql/data
logging:
image: grafana/loki:latest
ports:
- '3102:3102'
- '9095:9095'
volumes:
- ./config/loki/config.yml:/etc/loki/config.yaml
- dwengo_loki_data:/loki
command: -config.file=/etc/loki/config.yaml
restart: unless-stopped
dashboards:
image: grafana/grafana:latest
ports:
- '3100:3000'
volumes:
- dwengo_grafana_data:/var/lib/grafana
restart: unless-stopped
volumes:
dwengo_postgres_data:
dwengo_loki_data:
dwengo_grafana_data: