Skip to content

Instantly share code, notes, and snippets.

@moul
Last active August 29, 2015 14:13
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 moul/fd478020ba24313359b3 to your computer and use it in GitHub Desktop.
Save moul/fd478020ba24313359b3 to your computer and use it in GitHub Desktop.
fig pathwar dev
portal:
build: portal.pathwar.net
ports:
- 8090:8090
- 35729:35729
#links:
#- "mock:api"
volumes:
- "portal.pathwar.net:/usr/src/app/"
environment:
- API_PORT_5000_TCP_PORT=5000
mock:
build: api.pathwar.net/mock
#image: pathwar/api.pathwar.net-mock
volumes:
- api.pathwar.net/mock:/usr/src/app
links:
- "mongo:mongo"
ports:
- "5000:5000"
mongo:
image: mongo
command: --smallfiles
@moul
Copy link
Author

moul commented Jan 16, 2015

How to run :

fig up -d; fig logs                         # first run
fig up -d --no-deps portal; fig logs        # just relaunch the portal

How to run and keep two terminals for logs

# terminal 1
fig up -d mongo # just the first time
fig up --no-deps -d mock && fig logs mock
# terminal 2
fig up --no-deps -d mock && fig logs portal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment