Skip to content

Instantly share code, notes, and snippets.

@DeviaVir
Created June 15, 2017 17:09
Show Gist options
  • Save DeviaVir/3eee73245cb0b0df16c783dc54d68795 to your computer and use it in GitHub Desktop.
Save DeviaVir/3eee73245cb0b0df16c783dc54d68795 to your computer and use it in GitHub Desktop.
Gekko multiple instances
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