Skip to content

Instantly share code, notes, and snippets.

@vedovelli
Created February 6, 2018 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vedovelli/4afdb529fddf124052e84b7916b5471b to your computer and use it in GitHub Desktop.
Save vedovelli/4afdb529fddf124052e84b7916b5471b to your computer and use it in GitHub Desktop.
# v2 syntax
version: '2'
# Named volumes
volumes:
# Redis Data
octimine2017vedovelli-redis-data:
driver: local
services:
# Charts
charts:
image: ambientum/node:9
command: npm run dev
volumes:
- ./octimine-charts-vedovelli:/var/www/app
ports:
- "3456:3456"
# Redis
cache:
image: redis:3.2-alpine
command: --appendonly yes
volumes:
- octimine2017vedovelli-redis-data:/data
ports:
- "6379:6379"
# PHP (with Nginx)
app:
image: ambientum/php:7.2-nginx
volumes:
- .:/var/www/app
ports:
- "80:8080"
links:
- cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment