52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
|
version: "3"
|
||
|
|
||
|
services:
|
||
|
gitlab:
|
||
|
depends_on:
|
||
|
- redis
|
||
|
- postgresql
|
||
|
restart: always
|
||
|
image: sameersbn/gitlab:latest
|
||
|
environment:
|
||
|
- DEBUG=false
|
||
|
- TZ=Asia/Shanghai
|
||
|
- GITLAB_TIMEZONE=Beijing
|
||
|
- REDIS_HOST=redis
|
||
|
- REDIS_PORT=6379
|
||
|
- DB_ADAPTER=postgresql
|
||
|
- DB_HOST=postgresql
|
||
|
- DB_PORT=5432
|
||
|
- DB_USER=gitlab
|
||
|
- DB_PASS=gitlab
|
||
|
- DB_NAME=gitlabhq_production
|
||
|
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
|
||
|
- GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alphanumeric-string
|
||
|
- GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alphanumeric-string
|
||
|
- GITLAB_HOST=192.168.1.10
|
||
|
- GITLAB_PORT=80
|
||
|
- GITLAB_SSH_HOST=192.168.1.10
|
||
|
- GITLAB_SSH_PORT=222
|
||
|
ports:
|
||
|
- "222:22"
|
||
|
- "80:80"
|
||
|
volumes:
|
||
|
- /data/gitlab/data:/home/git/data:Z
|
||
|
- /data/gitlab/node_modules:/home/git/gitlab/node_modules:Z
|
||
|
- /data/gitlab/log:/var/log/gitlab:Z
|
||
|
|
||
|
redis:
|
||
|
restart: always
|
||
|
image: sameersbn/redis:latest
|
||
|
volumes:
|
||
|
- /data/gitlab/redis:/var/lib/redis:Z
|
||
|
|
||
|
postgresql:
|
||
|
restart: always
|
||
|
image: sameersbn/postgresql:14
|
||
|
environment:
|
||
|
- DB_EXTENSION=pg_trgm,btree_gist
|
||
|
- DB_USER=gitlab
|
||
|
- DB_PASS=gitlab
|
||
|
- DB_NAME=gitlabhq_production
|
||
|
volumes:
|
||
|
- /data/gitlab/postgresql:/var/lib/postgresql:Z
|