From 1e37e332f177155d3a5e92f909f50d6d98e81cf2 Mon Sep 17 00:00:00 2001 From: ngn Date: Wed, 17 Jan 2024 15:22:46 +0300 Subject: [PATCH] Adding compose file --- .gitignore | 1 - README.md | 5 +---- compose.yml | 10 ++++++++++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 compose.yml diff --git a/.gitignore b/.gitignore index a31732a..ad97612 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ content website -compose.yml diff --git a/README.md b/README.md index ef80bd6..093bcea 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,7 @@ located at [matterlinux.xyz](https://matterlinux.xyz) Web server can be built and deployed with docker: ``` docker build --tag matterwebsite . -docker run -d --name matterweb \ - -p 127.0.0.1:9878:9878 \ - -v $PWD/content:/app/content \ - matterwebsite +docker-compose up -d ``` ### Managing Content diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..1b8de35 --- /dev/null +++ b/compose.yml @@ -0,0 +1,10 @@ +version: "3" + +services: + tracker: + image: matterwebsite + restart: unless-stopped + ports: + - "127.0.0.1:9878:9878" + volumes: + - "./content:/app/content"