-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
37 lines (36 loc) · 1004 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3.8'
services:
env:
image: 'terra_algo_backtest-env:${ENV_TAG}'
container_name: 'terra_algo_backtest-env-${ENV_TAG}'
build:
dockerfile: './ops/Dockerfile'
target: 'python.env'
context: '.'
deps:
image: 'terra_algo_backtest-deps:${DEPS_TAG}'
container_name: 'terra_algo_backtest-deps-${DEPS_TAG}'
build:
dockerfile: './ops/Dockerfile'
target: 'env-deps'
context: '.'
args:
DEPS_IMAGE: 'terra_algo_backtest-env:${ENV_TAG}'
depends_on:
- env
build:
image: 'terra_algo_backtest-build:${BUILD_TAG}'
container_name: 'terra_algo_backtest-build-${BUILD_TAG}'
build:
dockerfile: './ops/Dockerfile'
target: 'env-build'
context: .
args:
DEPS_IMAGE: 'terra_algo_backtest-deps:${DEPS_TAG}'
volumes:
- .:/app/
ports:
- '8888:8888'
depends_on:
- deps
command: jupyter notebook --ip 0.0.0.0 --no-browser --notebook-dir '/app/docs/examples/'