配置文件
version: '2'
services:
redis:
restart: always
image: sameersbn/redis:latest
command:
- --loglevel warning
volumes:
- ./redis:/var/lib/redis:Z
postgresql:
restart: always
image: sameersbn/postgresql:9.6-2
volumes:
- ./postgresql:/var/lib/postgresql:Z
environment:
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
- DB_EXTENSION=pg_trgm
ports:
- "15432:5432"
gitlab:
restart: always
image: sameersbn/gitlab:9.5.1
links:
- redis:redisio
- postgresql:postgresql
ports:
- "10080:80"
- "10022:22"
volumes:
- ./data:/home/git/data:Z
environment:
- DEBUG=false
- GITLAB_HOST=192.168.1.20
- GITLAB_SECRETS_DB_KEY_BASE=admin123
- GITLAB_SECRETS_SECRET_KEY_BASE=admin123
- GITLAB_SECRETS_OTP_KEY_BASE=admin123
- DB_USER=gitlab
- DB_PASS=password
- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_NAME=gitlabhq_production
- DB_PORT=5432
- REDIS_HOST=redis
- REDIS_PORT=6379