1 Star 0 Fork 2

RickSanchez/H1ve_H

forked from 回忆LE/H1ve_H 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
single.yml 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
0akarma 提交于 2019-12-24 15:19 . Uniform network name standard
version: '3.5'
services:
main:
build:
context: .
args:
- WORKDIR=$PWD
image: h1ve-main
user: root
restart: always
ports:
- 8000: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:
ipv4_address: 10.2.0.10
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
# you can build image by yourself if you want.
# build: ./frp
restart: always
volumes:
- ./frp:/conf/
ports:
- 80:80
entrypoint:
- /app/frps
- -c
- /conf/frps.ini
networks:
frp:
ipv4_address: 10.1.0.3
frpc:
image: d0g3/h1ve-frp
# you can build image by yourself if you want.
# build: ./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:
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/SherryJerez/h1ve_h.git
[email protected]:SherryJerez/h1ve_h.git
SherryJerez
h1ve_h
H1ve_H
master

搜索帮助