2025SELab2-project-Dwengo/docker-compose.yml
Timo De Meyst 0995cba88c chore: update docker layout
Dockerfiles in root gezet zodat ze ook aan bestanden daarin kunnen
2025-03-07 17:19:30 +01:00

48 lines
1.1 KiB
YAML

services:
web:
build:
dockerfile: ./frontend.Dockerfile
depends_on:
- api
ports:
- '443:443'
- '80:80'
api:
build:
dockerfile: ./backend.Dockerfile
ports:
- '2002:2002'
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: