split docker composes

This commit is contained in:
Ashton Honnecke 2019-09-09 09:24:40 -06:00
parent a218946f52
commit e8e05b6876
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,19 @@
---
version: '3'
services:
freqtrade_develop:
build:
context: .
dockerfile: "./Dockerfile"
volumes:
- ".:/freqtrade"
pytest:
build:
context: .
dockerfile: "./Dockerfile.develop"
volumes:
- ".:/freqtrade"
command:
["./scripts/pytest.sh"]

8
docker-compose.prod.yml Normal file
View File

@ -0,0 +1,8 @@
---
version: '3'
services:
freqtrade:
image: freqtradeorg/freqtrade:master
volumes:
- "./user_data:/freqtrade/user_data"
- "./config.json:/freqtrade/config.json"

1
docker-compose.yml Symbolic link
View File

@ -0,0 +1 @@
docker-compose.prod.yml

5
scripts/pytest.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
echo "Running Unit tests"
pytest --random-order --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/