This repository has been archived on 2026-03-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
softwareengineering-2-modar.../compose.yml

27 lines
509 B
YAML

services:
database:
image: postgres:17-alpine
container_name: swe2-db
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: swe2
POSTGRES_USER: hm
POSTGRES_PASSWORD: hm
frontend:
build:
context: frontend
ports:
- "8000:80"
backend:
build:
context: .
ports:
- "8080:8080"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://database:5432/swe2
volumes:
db-data: