You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
510 B
16 lines
510 B
version: '{{ compose_version }}'
|
|
|
|
services:
|
|
postgres:
|
|
container_name: {{ postgres_container_name }}
|
|
restart: unless-stopped
|
|
hostname: {{ postgres_container_name }}
|
|
image: {{ postgres_docker_image }}
|
|
ports:
|
|
- {{ private_ip }}:{{ postgres_port }}:{{ postgres_port }}
|
|
volumes:
|
|
- {{ postgres_data_dir }}:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER={{ postgres_user }}
|
|
- POSTGRES_PASSWORD={{ postgres_password }}
|
|
- POSTGRES_DB={{ postgres_db }}
|
|
|