From e6a264842d1e44410c66bcf92d399a58ef406534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Gully?= Date: Fri, 14 Dec 2018 22:00:28 +0100 Subject: [PATCH] add a docker-compose helper --- README.md | 1 + docker-compose.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index c073a16..72e23a6 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ docker pull callidon/sage docker run -v path/to/config-file:/opt/data/ -p 8000:8000 callidon/sage sage /opt/data/config.yaml -w 4 -p 8000 ``` +Notice: you can also use [docker-compose.yml](https://github.com/sage-org/sage-engine/blob/master/docker-compose.yml) instead of the long docker run command. # Documentation diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..da8e5ab --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +version: '3.4' + +services: + + sage-engine: + container_name: sage-engine + image: callidon/sage + volumes: + - .:/opt/data/ + tty: true # to have nice outputs + stdin_open: true # to be able to use CTRL+C to stop the container + ports: + - 8000:8000 + command: sage /opt/data/config.yaml -w 4 -p 8000 +