mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 18:43:15 +02:00
26 lines
573 B
YAML
26 lines
573 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
db:
|
|
container_name: db_container
|
|
image: postgres:13
|
|
environment:
|
|
POSTGRES_USER: root
|
|
POSTGRES_PASSWORD: root
|
|
POSTGRES_DB: test_db
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- ./init_scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
pgadmin:
|
|
container_name: admin_container
|
|
image: dpage/pgadmin4
|
|
ports:
|
|
- 8080:80
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
|
PGADMIN_DEFAULT_PASSWORD: admin
|
|
|
|
volumes:
|
|
postgres_data: |