Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.3'
- services:
- nginx:
- image: nginx:1.15.8
- container_name: nginx
- ports:
- - "80:80"
- - "443:443"
- volumes:
- - ./docker/nginx/core:/etc/nginx/conf.d
- - ./app:/var/www/html
- - ./docker/nginx/logs:/var/log/nginx/
- - ./app:/usr/share/nginx/html/
- links:
- - php
- restart: always
- mysql:
- image: mysql:8.0.14
- ports:
- - "3306:3306"
- container_name: mysql
- environment:
- - MYSQL_ROOT_PASSWORD=xDRNOK5dsCKRUtMfZ9eICb5YO2hiSVs
- - MYSQL_DATABASE=laravel-xfiniysms
- - MYSQL_USER=laravel-xfinity
- - MYSQL_PASSWORD=JPgH2rxfAV7g73qf
- volumes:
- - ./MySQL:/var/lib/mysql
- restart: always
- php:
- build: ./docker/php
- container_name: php-fpm
- volumes:
- - ./app:/var/www/html
- - ./.env:/var/www/.env
- - ./docker/php/php-fpm.conf:/etc/php/php-fpm.conf
- links:
- - mysql
- restart: always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement