Created
February 6, 2018 07:45
-
-
Save vedovelli/64df47e72906b53681ba00dd0bf7aadf to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
octimine2017vedovelli-mysql-data: | |
driver: local | |
# Redis Data | |
octimine2017vedovelli-redis-data: | |
driver: local | |
services: | |
# MySQL (5.7) | |
mysql: | |
image: ambientum/mysql:5.7 | |
container_name: octimine2017vedovelli-mysql | |
volumes: | |
- octimine2017vedovelli-mysql-data:/var/lib/mysql | |
ports: | |
- "3306:3306" | |
environment: | |
- MYSQL_ROOT_PASSWORD=octimine2017vedovelli | |
- MYSQL_DATABASE=octimine2017vedovelli | |
- MYSQL_USER=octimine2017vedovelli | |
- MYSQL_PASSWORD=octimine2017vedovelli | |
# Redis | |
cache: | |
image: ambientum/redis:3.2 | |
container_name: octimine2017vedovelli-redis | |
command: --appendonly yes | |
volumes: | |
- octimine2017vedovelli-redis-data:/data | |
ports: | |
- "6379:6379" | |
# PHP (with Nginx) | |
app: | |
image: ambientum/php:7.0-nginx | |
container_name: octimine2017vedovelli-app | |
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