mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 02:38:10 +02:00
- Changed default Docker image version from 'latest' to '17-3.5' in config - Introduced entity_name var for consistent lookups - Added POSTGRES_VERSION and POSTGRES_VERSION_MAJOR extraction - Updated Dockerfile to install postgresql-server-dev-<major> with default fallback to 'all' - Minor YAML formatting improvements Ref: https://chatgpt.com/share/68de40b4-2eb8-800f-ab5b-11cc873c3604
18 lines
545 B
YAML
18 lines
545 B
YAML
docker:
|
|
services:
|
|
postgres:
|
|
# Postgis is necessary for mobilizon
|
|
image: postgis/postgis
|
|
name: postgres
|
|
# Please set an version in your inventory file!
|
|
# Rolling release isn't recommended
|
|
version: "17-3.5"
|
|
backup:
|
|
database_routine: true
|
|
cpus: "2.0"
|
|
mem_reservation: "4g"
|
|
mem_limit: "6g"
|
|
pids_limit: 1024
|
|
volumes:
|
|
data: "postgres_data"
|
|
network: "postgres" |