
nginx geconfigureerd en via docker gekopiëerd, SSL ingesteld en volume voor gemaakt in docker compose zodat de certificates op de server gevonden worden door docker
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
services:
|
|
web:
|
|
build:
|
|
dockerfile: ./frontend.Dockerfile
|
|
depends_on:
|
|
- api
|
|
ports:
|
|
- '443:443'
|
|
- '80:80'
|
|
volumes:
|
|
- ssl:/etc/letsencrypt/live/sel2-1.ugent.be/
|
|
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:
|
|
ssl:
|