代码拉取完成,页面将自动刷新
同步操作将从 孤木成林/H1ve 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。