Adding compose file

This commit is contained in:
ngn 2024-01-17 15:22:46 +03:00
parent f805d69ea4
commit 1e37e332f1
3 changed files with 11 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
content content
website website
compose.yml

View File

@ -6,10 +6,7 @@ located at [matterlinux.xyz](https://matterlinux.xyz)
Web server can be built and deployed with docker: Web server can be built and deployed with docker:
``` ```
docker build --tag matterwebsite . docker build --tag matterwebsite .
docker run -d --name matterweb \ docker-compose up -d
-p 127.0.0.1:9878:9878 \
-v $PWD/content:/app/content \
matterwebsite
``` ```
### Managing Content ### Managing Content

10
compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: "3"
services:
tracker:
image: matterwebsite
restart: unless-stopped
ports:
- "127.0.0.1:9878:9878"
volumes:
- "./content:/app/content"