Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- mysql:
- image: mysql
- container_name: database
- restart: always
- ports:
- - 4306:3306
- environment:
- MYSQL_DATABASE: larva
- MYSQL_ROOT_PASSWORD: root
- php:
- image: php:7-fpm
- container_name: php
- restart: always
- expose:
- - 9000
- ports:
- - 9003:9003
- volumes:
- - ".:/var/www/laravel"
- entrypoint:
- - php-fpm
- nginx:
- image: nginx:latest
- container_name: nginx
- restart: always
- ports:
- - 8080:80
- volumes:
- - ".:/var/www/laravel"
- - "./build/nginx.conf:/etc/nginx/conf.d/default.conf"
- depends_on:
- - php
- - mysql
- links:
- - php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement