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
491 B

  1. version: "3.4"
  2. services:
  3. postgres:
  4. container_name: postgres
  5. image: postgres:${POSTGRES_VERSION:-latest}
  6. restart: unless-stopped
  7. ports:
  8. - ${POSTGRES_HOST_IP_ADDRESS:-127.0.0.1}:${POSTGRES_HOST_PORT:-5432}:5432
  9. volumes:
  10. - pgdata:/var/lib/postgresql/data
  11. environment:
  12. POSTGRES_USER: ${POSTGRES_ADMIN_USER:-sysadmin}
  13. POSTGRES_PASSWORD: ${POSTGRES_ADMIN_PASSWORD:-password}
  14. volumes:
  15. pgdata: