Skip to content

circleci1 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor docker compose file
  • Loading branch information
James Lee committed Jun 26, 2016
commit 306b9e9bb769283a5dfabf1ff742de23c62bdf9c
7 changes: 7 additions & 0 deletions common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '2'
services:
dockerapp:
ports:
- "5000:5000"
redis:
image: redis:3.2.0
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
version: '2'
services:
dockerapp:
extends:
file: common.yml
service: dockerapp
build: .
ports:
- "5000:5000"

redis:
image: redis:3.2.0
extends:
file: common.yml
service: redis
9 changes: 6 additions & 3 deletions prod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
version: '2'
services:
dockerapp:
extends:
file: common.yml
service: dockerapp
image: jleetutorial/dockerapp
ports:
- "5000:5000"

redis:
image: redis:3.2.0
extends:
file: common.yml
service: redis