Init Postgresql on docker

This commit is contained in:
2024-10-18 11:27:46 +02:00
parent b266d044cc
commit dea9befd24

View File

@@ -0,0 +1,21 @@
# Use postgres/example user/password credentials
version: '3.9'
services:
postgresql:
image: postgres:17.0
container_name: tech-postgresql
restart: always
# set shared memory limit when using docker-compose
shm_size: 128mb
volumes:
- /mnt/data/postgresql:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: tech
POSTGRES_PASSWORD: tech
POSTGRED_DB: techstorage
PGDATA: /var/lib/postgresql/data