diff --git a/README.md b/README.md index da0ca89d..d062e8a7 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,21 @@ There are also precompiled binaries in the [releases](https://github.com/flawidd docker run --name Restfox -d -p 4004:4004 flawiddsouza/restfox:0.14.1 ``` +Start webapp using docker compose +``` +docker-compose up -d +``` + +Start webapp using docker compose with custom port +``` +docker-compose -p 5000:4004 up -d +``` + +Start webapp using docker compose with different version +``` +RESTFOX_VERSION=0.15.0 docker-compose up -d +``` + ## Screenshots diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..bcc132f1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3.8' + +services: + Restfox: + image: flawiddsouza/restfox:${RESTFOX_VERSION:-0.14.1} + container_name: Restfox + ports: + - "${CUSTOM_PORT_ON_HOST:-4004}:4004" + detach: true \ No newline at end of file