Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #executar -> docker-compose up --build
- version: '3'
- services:
- web:
- image: nginx:latest
- ports:
- - "8080:80"
- volumes:
- - ./:/app
- - ./site.conf:/etc/nginx/conf.d/site.conf
- networks:
- - webnet
- php:
- image: php:7-fpm
- volumes:
- - ./:/app
- networks:
- - webnet
- db:
- image: mysql
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: root
- MYSQL_DATABASE: homestead
- MYSQL_USER: homestead
- MYSQL_PASSWORD: secret
- networks:
- - webnet
- app:
- build: .
- depends_on:
- - db
- networks:
- - webnet
- networks:
- webnet:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement