SHARE
TWEET

Untitled

a guest Jun 17th, 2019 278 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #executar -> docker-compose up --build
  2. version: '3'
  3.  
  4. services:
  5.   web:
  6.     image: nginx:latest
  7.     ports:
  8.      - "8080:80"
  9.     volumes:
  10.      - ./:/app
  11.       - ./site.conf:/etc/nginx/conf.d/site.conf
  12.     networks:
  13.      - webnet
  14.   php:
  15.     image: php:7-fpm
  16.     volumes:
  17.      - ./:/app
  18.     networks:
  19.      - webnet
  20.   db:
  21.     image: mysql
  22.     restart: always
  23.     environment:
  24.       MYSQL_ROOT_PASSWORD: root
  25.       MYSQL_DATABASE: homestead
  26.       MYSQL_USER: homestead
  27.       MYSQL_PASSWORD: secret
  28.     networks:
  29.      - webnet
  30.   app:
  31.     build: .
  32.     depends_on:
  33.      - db
  34.     networks:
  35.      - webnet
  36. networks:
  37.  webnet:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top