Advertisement
sidglas

dock-composer Programador a Bordo

Jul 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.96 KB | None | 0 0
  1. version: "3.7"
  2. services:
  3.   db:
  4.     image: mysql
  5.     command: --default-authentication-plugin=mysql_native_password
  6.     container_name: mysql-container2
  7.     environment:
  8.       MYSQL_ROOT_PASSWORD: programadorabordo
  9.     volumes:
  10.      - ./api/db/data:/var/lib/mysql  
  11.     restart: always
  12.   api:
  13.     build: "./api"
  14.     container_name: node-container2
  15.     restart: always
  16.     volumes:
  17.      - ./api:/home/node/app
  18.     ports:
  19.       - "9003:9003"  
  20.     depends_on:
  21.      - db
  22.   web:
  23.      image: "php:7.2-apache"
  24.      container_name: php-container2    
  25.      restart: always
  26.      volumes:
  27.       - ./website:/var/www/html
  28.      ports:
  29.         - "8890:80"
  30.  
  31.      depends_on:
  32.        - db
  33.         - api  
  34.   web1:
  35.      image: "php:7.2-apache"
  36.      container_name: php-container2a    
  37.      restart: always
  38.      volumes:
  39.       - ./website1:/var/www/html      
  40.      ports:
  41.         - "8894:80"
  42.      depends_on:
  43.        - db
  44.         - api
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement