docker-compose.yaml
version: "3.9"
services:
web:
build: .
ports:
- "5000:5000"
redis:
image: "redis:alpine"
ports:
- "6379:6379"
nginx1:
image: nginx
container_name: nginx1
deploy:
replicas: 1
ports:
- "80:80"
nginx2:
image: nginx
container_name: nginx2
deploy:
replicas: 1
ports:
- "81:80"
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 12345678
本文来自博客园,作者:弩哥++,转载请注明原文链接:https://www.cnblogs.com/bangbangzoutianya/p/15692633.html