代码拉取完成,页面将自动刷新
同步操作将从 花菜/AnotherFasterRunner 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '3.8'
# 用来快速启动测试平台的前后端,不包含db和mq
# 用到本地的代码构建
# 可以搭配docker-compose-build-db—mq使用
# 或者已有mq和db也是OK的
x-env: &env
# db
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_HOST: ${MYSQL_HOST:-db}
MYSQL_PORT: ${MYSQL_PORT:-3306}
# mq
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
MQ_PORT: ${MQ_PORT}
MQ_HOST: ${MQ_HOST:-mq}
MQ_ADMIN_PORT: ${MQ_ADMIN_PORT}
MQ_VHOST: ${MQ_VHOST:-/}
# celery-worker
SERVER_IP: ${SERVER_IP}
DJANGO_API_PORT: ${DJANGO_API_PORT}
# app
EMAIL_HOST: ${EMAIL_HOST}
EMAIL_PORT: ${EMAIL_PORT}
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
services:
app:
image: fasterrunner_app:latest
build:
context: .
dockerfile: Dockerfile
args:
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.tuna.tsinghua.edu.cn/simple}
DEBIAN_REPO: ${DEBIAN_REPO:-mirrors.aliyun.com}
environment:
<<: *env
entrypoint: /app/start.sh
command: "app"
restart: always
celery-worker:
build:
context: .
dockerfile: Dockerfile
args:
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.tuna.tsinghua.edu.cn/simple}
DEBIAN_REPO: ${DEBIAN_REPO:-mirrors.aliyun.com}
environment:
<<: *env
entrypoint: /app/start.sh
command: "celery-worker"
restart: always
celery-beat:
build:
context: .
dockerfile: Dockerfile
args:
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.tuna.tsinghua.edu.cn/simple}
DEBIAN_REPO: ${DEBIAN_REPO:-mirrors.aliyun.com}
environment:
<<: *env
entrypoint: /app/start.sh
command: "celery-beat"
restart: always
# django-admin & app proxy
nginx:
build: ./nginx
ports:
- "${DJANGO_ADMIN_PORT}:8000"
depends_on:
- app
restart: always
environment:
<<: *env
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "${WEB_PORT}:80"
volumes:
- ./web/dist:/usr/share/nginx/html
environment:
- FasterRunner=${MYSQL_USER}
depends_on:
- app
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。