Skip to content

Instantly share code, notes, and snippets.

@bangiqi
Created April 9, 2017 15:25
Show Gist options
  • Save bangiqi/715435b1bc45edd7bbe7149958e55c63 to your computer and use it in GitHub Desktop.
Save bangiqi/715435b1bc45edd7bbe7149958e55c63 to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
build:
context: ./
dockerfile: deploy/web.docker
volumes:
- ./:/var/www
ports:
- "8080:80"
links:
- app
app:
build:
context: ./
dockerfile: deploy/app.docker
volumes:
- ./:/var/www
links:
- cache
environment:
- "DB_PORT=3306"
- "DB_HOST=database"
- "REDIS_PORT=6379"
- "REDIS_HOST=cache"
- "VIRTUAL_HOST=simanset.dev"
cache:
image: redis:3.0
ports:
- "63791:6379"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment