24 lines
624 B
YAML
24 lines
624 B
YAML
version: '3.6'
|
|
services:
|
|
|
|
db:
|
|
image: ${POSTGRES_IMAGE?-noimage-}
|
|
restart: unless-stopped
|
|
user: ${POSTGRES_UID?-nouid-}
|
|
environment:
|
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD?-no-passwd}"
|
|
TZ: America/Santiago
|
|
#LANG: es_ES.utf8
|
|
PGDATA: ./var/lib/postgresql/data/pgdata
|
|
POSTGRES_INITDB_ARGS: "${POSTGRES_INITDB_ARGS}"
|
|
ports:
|
|
- "${BDD_PORT?-noport-}:5432"
|
|
volumes:
|
|
- ./postgres.conf.d:/etc/postgresql/conf.d
|
|
- ${BDD_STORAGE?-no-storage}:/var/lib/postgresql/data
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: '512M'
|
|
cpus: '0.25'
|
|
|