1 Star 0 Fork 1.2K

gispdr/docker

forked from Kenny小狼/docker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
KennyLee 提交于 2021-01-21 15:17 . 更新目前使用的部分镜像
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/gispdr/docker.git
git@gitee.com:gispdr/docker.git
gispdr
docker
docker
master

搜索帮助