Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- networks:
- laravel:
- services:
- nginx:
- image: nginx:stable-alpine
- container_name: nginx
- ports:
- - "8088:80"
- volumes:
- - ./src:/var/www/html
- - ./nginx/defualt.conf:/etc/nginx/conf.d/default.conf
- depends_on:
- - php
- - mysql
- networks:
- - laravel
- mysql:
- image: mysql:5.7.22
- container_name: mysql
- restart: unless-stopped
- tty: true
- ports:
- - "4306:3306"
- volumes:
- - ./mysql:/var/lib/mysql
- environment:
- MYSQL_DATABASE: homestead
- MYSQL_USER: homestead
- MYSQL_PASSWORD: secret
- MYSQL_ROOT_PASSWORD: secret
- SERVICE_TAGS: dev
- SERVICE_NAME: mysql
- networks:
- - laravel
- php:
- build:
- context: .
- dockerfile: Dockerfile
- container_name: php
- volumes:
- - ./src:/var/www/html
- ports:
- - "9000:9000"
- networks:
- - laravel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement