代码拉取完成,页面将自动刷新
version: '3'
services:
api-server:
build: ./python
ports:
- '8000:8000'
links:
- mysql-server
environment:
DB_HOST: 'mysql-server'
DB_NAME: 'carsys'
DB_USER: 'hellokitty'
DB_PASS: 'Hellokitty.618'
web-server:
image: nginx:latest
ports:
- '80:80'
volumes:
- ./nginx/html:/usr/share/nginx/html
- ./nginx/conf:/etc/nginx/conf.d
links:
- api-server
mysql-server:
image: mysql:5.7.32
environment:
MYSQL_ROOT_PASSWORD: '1Qaz2Wsx'
MYSQL_USER: 'root'
MYSQL_PASS: '1Qaz2Wsx'
volumes:
- ./mysql/conf:/etc/mysql/mysql.conf.d
- ./mysql/data:/var/lib/mysql
- ./mysql/init:/docker-entrypoint-initdb.d
ports:
- '3306:3306'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。