Created
August 30, 2017 22:27
-
-
Save cpereiraweb/ed58fbc8b12f992d8e707fb7c92b2cb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### | |
# ATENTION: | |
# Replace all occurences of sandbox with your project's name | |
#### | |
# v2 syntax | |
version: '2' | |
# Named volumes | |
volumes: | |
# MySQL Data | |
sandbox-mysql-data: | |
driver: local | |
# Redis Data | |
sandbox-redis-data: | |
driver: local | |
services: | |
# MySQL (5.7) | |
mysql: | |
image: ambientum/mysql:5.7 | |
container_name: sandbox-mysql | |
volumes: | |
- sandbox-mysql-data:/var/lib/mysql | |
ports: | |
- "3306:3306" | |
environment: | |
- MYSQL_ROOT_PASSWORD=sandbox | |
- MYSQL_DATABASE=sandbox | |
- MYSQL_USER=sandbox | |
- MYSQL_PASSWORD=sandbox | |
# Redis | |
cache: | |
image: ambientum/redis:3.2 | |
container_name: sandbox-redis | |
command: --appendonly yes | |
volumes: | |
- sandbox-redis-data:/data | |
ports: | |
- "6379:6379" | |
# PHP (with Caddy) | |
app: | |
# image: ambientum/php:7.1-nginx | |
image: ambientum/php:7.1-caddy | |
container_name: sandbox-app | |
volumes: | |
- .:/var/www/app | |
ports: | |
- "8000:80" | |
links: | |
- mysql | |
- cache | |
# Laravel Queues | |
queue: | |
image: ambientum/php:7.1 | |
container_name: sandbox-queue | |
command: php artisan queue:listen | |
volumes: | |
- .:/var/www/app | |
links: | |
- mysql | |
- cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment