Created
April 3, 2018 15:25
-
-
Save victor-shelepen/6a393332d3d9a75c78139de6763cea6b to your computer and use it in GitHub Desktop.
This set up Forex Trading Platform for presentation purpose. It is described here http://vlikin.blogspot.com/2018/04/docker-based-production-environment.html
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
version: "2" | |
services: | |
trading_client_src: | |
image: vlikin/itp-trading_client_src | |
environment: | |
POSTGRES_HOST: db | |
volumes: | |
- trading_client:/usr/src/app:ro | |
trading_server_src: | |
image: vlikin/itp-trading_server_src | |
environment: | |
POSTGRES_HOST: db | |
volumes: | |
- server-sources:/usr/src/app:ro | |
- server-configs:/usr/src/configs:ro | |
node_server: | |
image: vlikin/itp-node | |
environment: | |
CONFIG_FILE: '../configs/config.js' | |
volumes: | |
- server-sources:/usr/src/app/build:ro | |
- server-configs:/usr/src/app/configs:ro | |
depends_on: | |
- trading_server_src | |
- db | |
links: | |
- db | |
command: 'node ./build/server.js' | |
node_service: | |
image: vlikin/itp-node | |
environment: | |
CONFIG_FILE: '../configs/config.js' | |
volumes: | |
- server-sources:/usr/src/app/build:ro | |
- server-configs:/usr/src/app/configs:ro | |
depends_on: | |
- node_server | |
links: | |
- node_server | |
links: | |
- db | |
command: 'node ./build/console.js update-quotes' | |
initial-data: | |
image: vlikin/itp-node | |
environment: | |
CONFIG_FILE: '../configs/config.js' | |
volumes: | |
- server-sources:/usr/src/app/build:ro | |
- server-configs:/usr/src/app/configs:ro | |
depends_on: | |
- node_server | |
links: | |
- db | |
command: 'node ./build/console.js fill-initial-data' | |
nginx: | |
image: vlikin/itp-nginx | |
volumes: | |
- trading_client:/var/www/static/trading_client:ro | |
links: | |
- db | |
- node_server | |
depends_on: | |
- trading_client_src | |
- node_server | |
ports: | |
- 80:80 | |
db: | |
image: mongo:jessie | |
volumes: | |
trading_client: | |
server-sources: | |
server-configs: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment