Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Added support for docker-compose 3 and fixed dependencies between con…
Browse files Browse the repository at this point in the history
…tainers. (#969)
  • Loading branch information
alincalinciuc authored and DeviaVir committed Jan 3, 2018
1 parent 75b393a commit 0c7c2c2
Showing 1 changed file with 39 additions and 37 deletions.
76 changes: 39 additions & 37 deletions docker-compose.yml
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"

0 comments on commit 0c7c2c2

Please sign in to comment.