1 Star 0 Fork 1

levi2016/H1ve

forked from 孤木成林/H1ve 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
single-nginx.yml 2.42 KB
一键复制 编辑 原始数据 按行查看 历史
Ph0rse 提交于 2020-02-29 12:29 . fix vul & update single-nginx.yml
version: '3.5'
services:
main:
build:
context: .
args:
- WORKDIR=$PWD
image: h1ve-main
user: root
restart: always
expose:
- 4000
environment:
- UPLOAD_FOLDER=/var/uploads
- DATABASE_URL=mysql+pymysql://root:ctfd@db/ctfd
- REDIS_URL=redis://cache:6379
- WORKERS=1
- LOG_FOLDER=/var/log/CTFd
- ACCESS_LOG=/var/log/CTFd/access.log
- ERROR_LOG=/var/log/CTFd/error.log
volumes:
- .data/CTFd/logs:/var/log/CTFd
- .data/CTFd/uploads:/var/uploads
- $PWD:$PWD
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- db
networks:
default:
internal:
frp_containers:
db:
image: mariadb:10.4
restart: always
environment:
- MYSQL_ROOT_PASSWORD=ctfd
- MYSQL_USER=ctfd
- MYSQL_PASSWORD=ctfd
- MYSQL_DATABASE=ctfd
volumes:
- .data/mysql:/var/lib/mysql
networks:
internal:
# This command is required to set important mariadb defaults
command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --wait_timeout=28800, --log-warnings=0]
cache:
image: redis:4
restart: always
volumes:
- .data/redis:/data
networks:
internal:
frps:
image: d0g3/h1ve-frp
restart: always
volumes:
- ./frp:/conf/
expose:
- 80
entrypoint:
- /app/frps
- -c
- /conf/frps.ini
networks:
frp:
ipv4_address: 10.1.0.3
frpc:
image: d0g3/h1ve-frp
restart: always
volumes:
- ./frp:/conf/
expose:
- 7400
entrypoint:
- /app/frpc
- -c
- /conf/frpc.ini
networks:
frp:
ipv4_address: 10.1.0.4
frp_containers:
nginx:
image: d0g3/h1ve-nginx
restart: always
depends_on:
- main
# 数据卷
volumes:
- "$PWD/nginx/conf/ssl:/opt/verynginx/openresty/nginx/conf/ssl:ro"
- "$PWD/nginx/conf/vhosts:/opt/verynginx/openresty/nginx/conf/vhosts:ro"
ports:
- "80:80"
- "443:443"
networks:
default:
frp:
ipv4_address: 10.1.0.2
networks:
default:
internal:
internal: true
frp:
name: "h1ve_frp"
driver: bridge
ipam:
config:
- subnet: 10.1.0.0/16
frp_containers:
name: "h1ve_frp_containers"
driver: bridge
ipam:
config:
- subnet: 10.2.0.0/16
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/null_570_2396/H1ve.git
git@gitee.com:null_570_2396/H1ve.git
null_570_2396
H1ve
H1ve
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385