代码拉取完成,页面将自动刷新
同步操作将从 Kenny小狼/docker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '2'
networks:
&network net:
driver: bridge
ipam:
driver: default
services:
redis:
image: ${REDIS_IMAGE}
restart: always
container_name: gitlab_redis
expose:
- '6379'
networks:
- *network
#volumes:
# - ${REDIS_DATA}:/data:z
logging:
driver: 'json-file'
options:
max-size: '30m'
max-file: '1'
gitlab:
image: ${GITLAB_IMAGE}
container_name: gitlab
hostname: ${GITLAB_HOSTNAME}
ports:
- "${GITLAB_HTTP_PORT}:${GITLAB_HTTP_PORT}"
- "${GITLAB_SSH_PORT}:22"
restart: always
networks:
- *network
volumes:
- ${GITLAB_DATA_PATH}:/var/opt/gitlab:rw
- ${GITLAB_LOGS_PATH}:/var/log/gitlab:rw
- ${GITLAB_CONFIG_PATH}:/etc/gitlab:rw
privileged: true
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url "http://${GITLAB_HOSTNAME}:${GITLAB_HTTP_PORT}"
gitlab_rails['gitlab_shell_ssh_port'] = ${GITLAB_SSH_PORT}
postgresql['enable'] = false
gitlab_rails['db_username'] = "${POSTGRESQL_USER}"
gitlab_rails['db_password'] = "${POSTGRESQL_PASSWORD}"
gitlab_rails['db_host'] = "postgresql"
gitlab_rails['db_port'] = "5432"
gitlab_rails['db_database'] = "${POSTGRESQL_DB}"
gitlab_rails['db_adapter'] = 'postgresql'
gitlab_rails['db_encoding'] = 'utf8'
redis['enable'] = false
gitlab_rails['redis_host'] = 'redis'
gitlab_rails['redis_port'] = '6379'
logging:
driver: 'json-file'
options:
max-size: '30m'
max-file: '2'
depends_on:
- redis
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。