Skip to content

Instantly share code, notes, and snippets.

@raisiqueira
Created March 21, 2017 14:06
Show Gist options
  • Select an option

  • Save raisiqueira/d577a4c4e23f4657cd432ab78469f57e to your computer and use it in GitHub Desktop.

Select an option

Save raisiqueira/d577a4c4e23f4657cd432ab78469f57e to your computer and use it in GitHub Desktop.
version: '2'
volumes:
# Redis Data
redis-data:
driver: local
# Inicio dos serviços
services:
# Banco Maria DB
mysql:
image: mariadb:latest
container_name: mysql-faveo
volumes:
- "./.datadb:/var/lib/mysql"
restart: always
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=faveo
- MYSQL_DATABASE=faveo
- MYSQL_USER=faveo
- MYSQL_PASSWORD=faveo
# Cache Redis
cache:
image: ambientum/redis:3.2
container_name: cache-faveo
command: --appendonly yes
volumes:
- redis-data:/data
restart: always
# App
app:
image: ambientum/php:7.1-nginx
container_name: app-faveo
volumes:
- ./faveo:/var/www/app
ports:
- "80:8080"
restart: always
links:
- mysql
- cache
# Laravel Queues
# queue:
# image: ambientum/php:7.1
# container_name: queue-faveo
# 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