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 +