1 Star 0 Fork 17

龍dz/py_admin

forked from leeyi/py_admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-local.yml 3.22 KB
一键复制 编辑 原始数据 按行查看 历史
leeyi 提交于 2020-08-17 18:11 . 避免 master/slave 等术语
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/longdaozhang/py_admin.git
[email protected]:longdaozhang/py_admin.git
longdaozhang
py_admin
py_admin
main

搜索帮助