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

posted @ 2021-12-15 14:26  弩哥++  阅读(46)  评论(0编辑  收藏  举报