12 Star 26 Fork 8

khs1994-docker/ci

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 2.31 KB
一键复制 编辑 原始数据 按行查看 历史
khs1994 提交于 2019-01-08 22:00 . Update README
version: "3.7"
#
# This file is override by docker-compose.override.yml
#
x-common:
&default-common
restart: always
networks:
- backend
services:
drone-server:
<< : *default-common
image: drone/drone:${CI_DRONE_VERSION:-0.8.7}
ports:
# - 80:80
# - 443:443
- "${CI_HOST:-192.168.199.100}:${CI_DRONE_PORT:-8000}:8000"
# - 9000:9000
volumes:
- drone-data:/var/lib/drone/:rw
networks:
- frontend
- backend
drone-agent:
<< : *default-common
image: drone/agent:${CI_DRONE_VERSION:-0.8.7}
depends_on:
- drone-server
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
environment:
- DRONE_SECRET=${DRONE_SECRET}
- DRONE_SERVER=drone-server:9000
gogs:
<< : *default-common
image: gogs/gogs:latest
ports:
- "${CI_HOST:-192.168.199.100}:${CI_GOGS_SSH_PORT}:22"
- "${CI_HOST:-192.168.199.100}:${CI_GOGS_PORT}:3000"
networks:
- frontend
- backend
volumes:
- gogs-data:/data:rw
- ./config/nginx/ssl:/etc/nginx/conf.d/ssl:rw
- ./config/gogs/app.ini:/data/gogs/conf/app.ini:rw
- ./logs/gogs:/app/gogs/log:rw
registry:
<< : *default-common
image: registry:latest
ports:
- "${CI_HOST:-192.168.199.100}:${CI_REGISTRY_PORT:-5000}:5000"
networks:
- frontend
- backend
volumes:
- ./config/registry/config.yml:/etc/docker/registry/config.yml:ro
- registry-data:/var/lib/registry:rw
mysql:
<< : *default-common
image: mysql:${CI_MYSQL_VERSION:-8.0.13}
env_file: secrets/mysql.env
volumes:
- mysql-data:/var/lib/mysql:rw
- ./backup/init:/docker-entrypoint-initdb.d:ro
command: ["mysqld","--character-set-server=utf8mb4","--default-authentication-plugin=mysql_native_password"]
redis:
<< : *default-common
image: redis:${CI_REDIS_VERSION:-5.0.3}-alpine
volumes:
- redis-data:/data
nginx:
<< : *default-common
image: khs1994/nginx:${CI_NGINX_VERSION:-1.15.8}-alpine
networks:
- frontend
ports:
- "443:443"
volumes:
- ./config/nginx:/etc/nginx/conf.d
- ./logs/nginx:/var/log/nginx
volumes:
gogs-data:
redis-data:
mysql-data:
drone-data:
registry-data:
networks:
backend:
frontend:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/khs1994-docker/ci.git
git@gitee.com:khs1994-docker/ci.git
khs1994-docker
ci
ci
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385