mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 17:43:12 +02:00
42 lines
865 B
YAML
42 lines
865 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
volumes:
|
|
- ./connector/Include:/app
|
|
ports:
|
|
- "8090:8090" # Adjust if your app uses a different port
|
|
depends_on:
|
|
- db
|
|
db:
|
|
image: postgres:13
|
|
environment:
|
|
POSTGRES_DB: test_db
|
|
POSTGRES_USER: root
|
|
POSTGRES_PASSWORD: root
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
pgadmin:
|
|
container_name: admin_container
|
|
image: dpage/pgadmin4
|
|
ports:
|
|
- 8080:80
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
|
PGADMIN_DEFAULT_PASSWORD: admin
|
|
frontend:
|
|
container_name: frontend
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- app
|
|
|
|
volumes:
|
|
postgres_data: |