Skip to content

Instantly share code, notes, and snippets.

@bangiqi
Created April 10, 2017 04:59
Show Gist options
  • Save bangiqi/58e001e50d4db8db60dd2a215989939e to your computer and use it in GitHub Desktop.
Save bangiqi/58e001e50d4db8db60dd2a215989939e to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
build:
context: ./
dockerfile: deploy/web.docker
volumes:
- ./apisimanset:/var/www
ports:
- "8081:80"
links:
- app_api
- app_web
app_api:
build:
context: ./
dockerfile: deploy/app.docker
volumes:
- ./apisimanset:/var/www
links:
- cache
environment:
- "DB_PORT=3306"
- "DB_HOST=0.0.0.0"
- "REDIS_PORT=6379"
- "REDIS_HOST=cache"
- "VIRTUAL_HOST=apisimanset.dev"
app_web:
build:
context: ./
dockerfile: deploy/app.docker
volumes:
- ./simanset:/var/www
links:
- cache
environment:
- "DB_PORT=3306"
- "DB_HOST=0.0.0.0"
- "REDIS_PORT=6379"
- "REDIS_HOST=cache"
- "VIRTUAL_HOST=apisimanset.dev"
cache:
image: redis:3.0
ports:
- "63792:6379"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment