Created
June 15, 2017 17:09
-
-
Save DeviaVir/3eee73245cb0b0df16c783dc54d68795 to your computer and use it in GitHub Desktop.
Gekko multiple instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
restart: always | |
build: ./ | |
volumes: | |
- ./volumes/gekko/history:/usr/src/app/history | |
- ./config.js:/usr/src/app/config.js | |
links: | |
- redis | |
environment: | |
- HOST | |
- PORT | |
ports: | |
- "${PORT}:${PORT}" | |
server2: | |
restart: always | |
image: gekko_server # optionally, you can still do "build: ./", but it makes more sense to just reuse | |
volumes: | |
- ./volumes/gekko/history:/usr/src/app/history | |
- ./config.js:/usr/src/app/config.js | |
links: | |
- redis | |
environment: | |
- HOST | |
- PORT | |
ports: | |
- "${PORT}:${PORT}" | |
redis: | |
image: redis:latest | |
volumes: | |
- ./volumes/redis:/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment