docker/postgresql/README.md
2017-11-15 23:26:10 +08:00

412 B

PostgreSQL

使用方法参考:

postgresql:
  restart: always
  image: postgres:9.6.2-alpine
  port:
  	- 5432:5432
  environment:
	- POSTGRES_USER=gitlab
	- POSTGRES_PASSWORD=gitlab
	- POSTGRES_DB=gitlabhq_production
# the following are hints on what volumes to mount if you want to persist data
#  volumes:
#	- data/postgresql:/var/lib/postgresql/data:rw

官方 https://hub.docker.com/_/postgres/