Permalink
Switch branches/tags
Nothing to show
Find file Copy path
df4027f Dec 6, 2018
1 contributor

Users who have contributed to this file

55 lines (48 sloc) 989 Bytes
version: '3'
services:
blog-server:
build: .cloud/docker
image: laravel-blog
depends_on:
- mysql
- mysql-test
- redis
volumes:
- ./:/application:cached
horizon:
build: .cloud/docker
image: laravel-blog
command: php artisan horizon
depends_on:
- mysql
volumes:
- ./:/application:cached
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=laravel-blog
volumes:
- ./storage/tmp/db:/var/lib/mysql:cached
mysql-test:
image: mysql:5.7
ports:
- "3307:3306"
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=testing
nginx:
image: nginx
ports:
- "8000:8000"
volumes:
- .cloud/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:cached
- ./:/application:cached
depends_on:
- blog-server
redis:
image: redis
ports:
- "6379:6379"