This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for docker-compose 3 and fixed dependencies between con…
…tainers. (#969)
- Loading branch information
1 parent
75b393a
commit 0c7c2c2
Showing
1 changed file
with
39 additions
and
37 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
server: | ||
build: . | ||
volumes: | ||
- ./conf.js:/app/conf.js | ||
- ./extensions:/app/extensions | ||
- ./simulations:/app/simulations | ||
links: | ||
- mongodb | ||
command: [ "trade", "--paper" ] | ||
restart: always | ||
tty: true | ||
environment: | ||
- MONGODB_PORT_27017_TCP_ADDR=mongodb | ||
version: '3.1' | ||
|
||
mongodb: | ||
image: mongo:latest | ||
volumes_from: | ||
- mongodb-data | ||
command: mongod --smallfiles --bind_ip_all | ||
services: | ||
|
||
mongodb-data: | ||
image: mongo:latest | ||
volumes: | ||
- ./data/db:/data/db | ||
command: "true" | ||
server: | ||
build: . | ||
volumes: | ||
- ./conf.js:/app/conf.js | ||
- ./extensions:/app/extensions | ||
- ./simulations:/app/simulations | ||
links: | ||
- mongodb | ||
command: [ "trade", "--paper" ] | ||
restart: always | ||
tty: true | ||
depends_on: | ||
- mongodb | ||
environment: | ||
- MONGODB_PORT_27017_TCP_ADDR=mongodb | ||
|
||
# Remove below comments to use this container. "adminMongo is a Web based user interface (GUI) to handle all your MongoDB connections/databases needs." | ||
# | ||
#adminmongo: | ||
# image: mrvautin/adminmongo | ||
# links: | ||
# - mongodb | ||
# tty: true | ||
# ports: | ||
# - "1234:1234" | ||
# environment: | ||
# - CONN_NAME=zenbot_mongodb | ||
# - DB_HOST=mongodb | ||
# - DB_PORT=27017 | ||
# command: "npm start" | ||
mongodb: | ||
image: mongo:latest | ||
volumes: | ||
- ./data/db:/data/db | ||
command: mongod --smallfiles --logpath=/dev/null | ||
ports: | ||
- 27017:27017 | ||
|
||
# Remove below comments to use this container. "adminMongo is a Web based user interface (GUI) to handle all your MongoDB connections/databases needs." | ||
# | ||
#adminmongo: | ||
# image: mrvautin/adminmongo | ||
# links: | ||
# - mongodb | ||
# tty: true | ||
# ports: | ||
# - "1234:1234" | ||
# environment: | ||
# - CONN_NAME=zenbot_mongodb | ||
# - DB_HOST=mongodb | ||
# - DB_PORT=27017 | ||
# command: "npm start" |