Skip to content

Instantly share code, notes, and snippets.

@moul moul/fig.yml
Last active Aug 29, 2015

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.