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"