digitaldemocratic/docker-compose-parts/postgresql.yml

20 lines
492 B
YAML

version: '3.7'
services:
isard-sso-postgresql:
image: postgres:13.5-alpine3.15
container_name: isard-sso-postgresql
restart: unless-stopped
env_file:
- .env
volumes:
- /etc/localtime:/etc/localtime:ro
- ${DB_FOLDER}/postgres:/var/lib/postgresql/data
- ${BUILD_ROOT_PATH}/init/databases:/docker-entrypoint-initdb.d
networks:
- isard_net
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"