代码拉取完成,页面将自动刷新
version: '3'
services:
3monkeys-mysql:
build:
context: ./
dockerfile: ./db/Dockerfile
environment:
MYSQL_ROOT_PASSWORD: root
restart: always
container_name: 3monkeys-mysql
image: 3monkeys-mysql
ports:
- 3306:3306
volumes:
- ./3monkeys-mysql:/var/lib/mysql
command: --lower_case_table_names=1
3monkeys-redis:
image: redis:5.0.4
restart: always
container_name: 3monkeys-redis
ports:
- 6379:6379
3monkeys-admin:
build:
context: ./
dockerfile: ./monkey-shop-admin/Dockerfile
restart: always
container_name: 3monkeys-admin
image: 3monkeys-admin
ports:
- 8085:8085
depends_on:
- 3monkeys-redis
- 3monkeys-mysql
links:
- "3monkeys-redis"
- "3monkeys-mysql"
3monkeys-api:
build:
context: ./
dockerfile: ./monkey-shop-api/Dockerfile
restart: always
container_name: 3monkeys-api
image: 3monkeys-api
ports:
- 8086:8086
depends_on:
- 3monkeys-redis
- 3monkeys-mysql
links:
- "3monkeys-redis"
- "3monkeys-mysql"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。