From 7c6921c743c3f6b17a9e3a4b8c5c49e8d3d23535 Mon Sep 17 00:00:00 2001 From: Ashton Honnecke Date: Mon, 23 Sep 2019 13:17:20 -0600 Subject: [PATCH] pr feedback regarding docker-compose naming --- LOCAL.md | 30 ++++++++++++++++++++++++++++++ docker-compose.develop.yml | 10 ---------- docker-compose.prod.yml | 8 -------- docker-compose.yml | 9 ++++++++- 4 files changed, 38 insertions(+), 19 deletions(-) create mode 100644 LOCAL.md delete mode 100644 docker-compose.prod.yml mode change 120000 => 100644 docker-compose.yml diff --git a/LOCAL.md b/LOCAL.md new file mode 100644 index 000000000..9172520b1 --- /dev/null +++ b/LOCAL.md @@ -0,0 +1,30 @@ +# Local development + +The fastest and easiest way to start up is to use docker-compose.develop which gives developers the ability to start the bot up with all the required dependencies, *without* needing to install any freqtrade specific dependencies on your local machine. + +# Install +## git +``` bash +sudo apt install git +``` + +## docker +``` bash +sudo apt install docker +``` + +## docker-compose +``` bash +sudo apt install docker-compose +``` +# Starting the bot +## Develop dockerfile +``` bash +rm docker-compose.yml && mv docker-compose.develop.yml docker-compose.yml +``` + +## Docker Compose up + +``` bash +docker-compose up +``` diff --git a/docker-compose.develop.yml b/docker-compose.develop.yml index 4dfdb9357..bbf20b3f3 100644 --- a/docker-compose.develop.yml +++ b/docker-compose.develop.yml @@ -2,18 +2,8 @@ version: '3' services: freqtrade_develop: - build: - context: . - dockerfile: "./Dockerfile" - volumes: - - ".:/freqtrade" - - pytest: build: context: . dockerfile: "./Dockerfile.develop" volumes: - ".:/freqtrade" - command: - ["./scripts/pytest.sh"] - diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml deleted file mode 100644 index cae98c3ee..000000000 --- a/docker-compose.prod.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '3' -services: - freqtrade: - image: freqtradeorg/freqtrade:master - volumes: - - "./user_data:/freqtrade/user_data" - - "./config.json:/freqtrade/config.json" diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 120000 index 945318087..000000000 --- a/docker-compose.yml +++ /dev/null @@ -1 +0,0 @@ -docker-compose.prod.yml \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..cae98c3ee --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +--- +version: '3' +services: + freqtrade: + image: freqtradeorg/freqtrade:master + volumes: + - "./user_data:/freqtrade/user_data" + - "./config.json:/freqtrade/config.json"