WUT_Computer_Science/docker-compose.yml

42 lines
865 B
YAML
Raw Normal View History

2024-05-12 19:14:07 +02:00
version: '3.8'
2024-05-12 12:10:38 +02:00
services:
2024-05-12 19:14:07 +02:00
app:
build: .
volumes:
2024-05-12 19:14:07 +02:00
- ./connector/Include:/app
ports:
2024-05-12 19:14:07 +02:00
- "8090:8090" # Adjust if your app uses a different port
depends_on:
- db
2024-05-12 12:10:38 +02:00
db:
image: postgres:13
environment:
2024-05-12 19:14:07 +02:00
POSTGRES_DB: test_db
2024-05-12 12:10:38 +02:00
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
volumes:
2024-05-12 19:14:07 +02:00
- postgres_data:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
2024-05-12 12:10:38 +02:00
pgadmin:
container_name: admin_container
image: dpage/pgadmin4
ports:
- 8080:80
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
2024-06-16 20:52:10 +02:00
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
- app
2024-05-12 12:10:38 +02:00
volumes:
postgres_data: