docker/postgresql/README.md

22 lines
412 B
Markdown
Raw Normal View History

2017-11-15 18:04:55 +08:00
# PostgreSQL
使用方法参考:
```
postgresql:
restart: always
image: postgres:9.6.2-alpine
2017-11-15 23:26:10 +08:00
port:
- 5432:5432
2017-11-15 18:04:55 +08:00
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:
2017-11-15 23:26:10 +08:00
# - data/postgresql:/var/lib/postgresql/data:rw
2017-11-15 18:04:55 +08:00
```
官方 https://hub.docker.com/_/postgres/