make the externa/exposed port configurable

This commit is contained in:
Micha Gläß-Stöcker 2022-05-18 14:30:48 +02:00
parent e206487577
commit cf1ba4395d
2 changed files with 3 additions and 0 deletions

View file

@ -3,4 +3,5 @@
postgres_password: t0t4l!S3cur1tY. postgres_password: t0t4l!S3cur1tY.
postgres_data_folder: ./psql_data postgres_data_folder: ./psql_data
postgres_version: alpine postgres_version: alpine
postgres_external_port: 5432
compose_dir: /srv compose_dir: /srv

View file

@ -12,6 +12,8 @@ services:
POSTGRES_PASSWORD: {{ postgres_password }} POSTGRES_PASSWORD: {{ postgres_password }}
volumes: volumes:
- {{ postgres_data_folder }}:/var/lib/postgresql/data - {{ postgres_data_folder }}:/var/lib/postgresql/data
ports:
- {{ postgres_external_port }}:5432
adminer: adminer:
image: adminer image: adminer