Skip to content

Instantly share code, notes, and snippets.

@hernandev
Created August 8, 2016 16:16
Show Gist options
  • Save hernandev/17d4609b6565fca5f025deafd727499c to your computer and use it in GitHub Desktop.
Save hernandev/17d4609b6565fca5f025deafd727499c to your computer and use it in GitHub Desktop.
# Mysql 5.7
mysql:
image: ambientum/mysql:5.7
container_name: sandbox-mysql
volumes:
- sandbox-mysql:/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
ports:
- "6379:6379"
# PHP (with Caddy)
app:
image: ambientum/php:7.0-caddy
container_name: sandbox-php
volumes:
- .:/var/www/app
ports:
- "80:8080"
links:
- mysql
- cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment