docker-compose.yml 460 B

12345678910111213141516171819
  1. version: '2'
  2. services:
  3. postgresql:
  4. image: 'registry.cn-hangzhou.aliyuncs.com/kennylee/postgresql:12.4'
  5. container_name: "postgresql"
  6. ports:
  7. - '5432:5432'
  8. volumes:
  9. - './data/data:/bitnami/postgresql'
  10. - './data/conf:/bitnami/postgresql/conf/'
  11. environment:
  12. - POSTGRESQL_PASSWORD=password123456
  13. restart: on-failure
  14. logging:
  15. driver: 'json-file'
  16. options:
  17. max-size: '12m'
  18. max-file: '5'