22 lines
487 B
YAML
22 lines
487 B
YAML
# 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
|
|
|