Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (54 sloc) 937 Bytes
version: "2"
networks:
default:
external:
name: develop
services:
data:
image: busybox
volumes:
- .:/var/www/app
nginx:
image: nginx
ports:
- "80:80"
links:
- fpm
volumes:
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- data
fpm:
build: ./docker/php71-fpm
volumes_from:
- data
links:
- mysql
- redis
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: blog
MYSQL_PASSWORD: blog
MYSQL_DATABASE: blog
volumes:
- mysql:/var/lib/mysql
redis:
image: redis
ports:
- "6379:6379"
artisan:
build: ./docker/php71-fpm
volumes:
- .:/var/www/html
links:
- mysql
- redis
entrypoint: "./artisan"
working_dir: /var/www/html
volumes:
mysql:
driver: local
You can’t perform that action at this time.