代码拉取完成,页面将自动刷新
同步操作将从 lybbn/django-vue-lyadmin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: "3"
services:
nginx:
image: nginx:alpine
container_name: nginx
# privileged: true #解决nginx得文件调用权限的问题
ports:
- "8080:8080"
expose:
- "8080"
restart: always
environment:
TZ: Asia/Shanghai
volumes:
- ./docker_env/nginx/logs:/var/log/nginx
- ./docker_env/nginx/my.conf:/etc/nginx/conf.d/my.conf
networks:
network:
ipv4_address: 10.10.10.12
db:
image: mysql:5.7
container_name: db
privileged: true
restart: always
ports:
- "3306:3306"
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: "root" #输入自己的密码
MYSQL_DATABASE: "lyadmin_db"
TZ: Asia/Shanghai
command:
--wait_timeout=31536000
--interactive_timeout=31536000
--max_connections=1000
--default-authentication-plugin=mysql_native_password
volumes:
- ./docker_env/mysql/data:/var/lib/mysql
- ./docker_env/mysql/conf.d:/etc/mysql/conf.d"
- ./docker_env/mysql/logs:/logs
networks:
network:
ipv4_address: 10.10.10.13
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
expose:
- "6379"
volumes:
- ./docker_env/redis/data:/data
- ./docker_env/redis/redis.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf
networks:
network:
ipv4_address: 10.10.10.14
django:
build:
context: .
dockerfile: ./docker_env/django/Dockerfile
container_name: django
working_dir: /backend
ports:
- "8000:8000"
expose:
- "8000"
command: daphne -b 0.0.0.0 -p 8000 --proxy-headers application.asgi:application
restart: always
depends_on:
- db
- redis
environment:
DATABASE_HOST: db
TZ: Asia/Shanghai
volumes:
- ./backend:/backend
- ./docker_env/django/logs:/var/log
networks:
network:
ipv4_address: 10.10.10.11
networks:
network:
ipam:
driver: default
config:
- subnet: 10.10.10.0/24
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。