代码拉取完成,页面将自动刷新
同步操作将从 leeyi/py_admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '3'
services:
pya_db_main:
image: mysql:5.7
container_name: pya_db_main
restart: always
environment:
MYSQL_DATABASE: db_py_admin
MYSQL_USER: user_py_admin
MYSQL_PASSWORD: eb27acWqa16E1
MYSQL_ROOT_PASSWORD: eb27acWqa16E1
TZ: Asia/Shanghai
RUNTIME_ENV: local
networks:
- shared
ports:
- "0.0.0.0:33061:3306"
volumes:
- ./docker/local/db_main.cnf:/etc/mysql/conf.d/main.cnf
- ./docker/local/db_init_main.sql:/docker-entrypoint-initdb.d/init_main.sql
- ./datas/sql/db_vsn1.0.1.sql:/docker-entrypoint-initdb.d/init_db_py_admin.sql
- ./datas/sql/db_vsn1.0.1_fix.sql:/docker-entrypoint-initdb.d/init_db_py_admin_fix.sql
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
pya_db_subordinate:
image: mysql:5.7
container_name: pya_db_subordinate
restart: always
environment:
MYSQL_DATABASE: db_py_admin
MYSQL_USER: user_py_admin_subordinate
MYSQL_PASSWORD: eb27acWqa16E1
MYSQL_ROOT_PASSWORD: eb27acWqa16E1
TZ: Asia/Shanghai
RUNTIME_ENV: dev
depends_on:
- pya_db_main
networks:
- shared
ports:
- "0.0.0.0:33062:3306"
volumes:
- ./docker/local/db_subordinate.cnf:/etc/mysql/conf.d/subordinate.cnf
- ./docker/local/db_init_subordinate.sql:/docker-entrypoint-initdb.d/init_subordinate.sql
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
pya_redis:
image: redis
command: ["redis-server", "/etc/redis.conf"]
container_name: pya_redis
restart: always
ports:
- "0.0.0.0:6378:6379"
networks:
- shared
environment:
TZ: Asia/Shanghai
RUNTIME_ENV: dev
volumes:
- ./docker/local/redis.conf:/etc/redis.conf
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
pya_py_admin:
image: leeyi/py_admin:1.0.1
container_name: pya_py_admin
restart: always
security_opt:
- seccomp:unconfined
ulimits:
core: -1
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
environment:
TZ: Asia/Shanghai
RUNTIME_ENV: local
ports:
- "0.0.0.0:5080:5080"
depends_on:
- pya_db_main
- pya_db_subordinate
- pya_redis
volumes:
- ./:/data/py_admin
shm_size: 1G
cap_add:
- SYS_PTRACE
command: ['python3', '/data/py_admin/server.py']
networks:
- shared
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
networks:
shared:
external:
name: shared
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。