Add: basic docker compose for postgress
This commit is contained in:
parent
7fc88dc0e9
commit
f7bc6f4d5c
1 changed files with 29 additions and 0 deletions
29
backend/docker-compose.yml
Normal file
29
backend/docker-compose.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:16
|
||||||
|
container_name: postgres_dev
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: archivist
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
POSTGRES_DB: archivist
|
||||||
|
TZ: Europe/Berlin
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
pgadmin:
|
||||||
|
image: dpage/pgadmin4
|
||||||
|
container_name: pgadmin_dev
|
||||||
|
restart: unless-stopped #always
|
||||||
|
environment:
|
||||||
|
PGADMIN_DEFAULT_EMAIL: aroy-art@pm.me
|
||||||
|
PGADMIN_DEFAULT_PASSWORD: admin
|
||||||
|
ports:
|
||||||
|
- "5050:80"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
Loading…
Add table
Reference in a new issue