add compose file

This commit is contained in:
marcel-dempers 2022-11-01 21:54:00 +11:00
parent 4094d24490
commit e623e4d4bf

View File

@ -0,0 +1,21 @@
version: '3.1'
services:
db:
container_name: postgres
image: postgres:15.0
command: "postgres -c config_file=/config/postgresql.conf"
environment:
POSTGRES_USER: "postgresadmin"
POSTGRES_PASSWORD: "admin123"
POSTGRES_DB: "postgresdb"
PGDATA: "/data"
volumes:
- ./pgdata:/data
- ./config:/config/
ports:
- 5000:5432
adminer:
image: adminer
restart: always
ports:
- 8080:8080