website/README.md

34 lines
831 B
Markdown
Raw Normal View History

2024-08-13 21:32:48 +00:00
# website | MatterLinux website
Soruce code of Matterlinux's offical website, which is
located at [matterlinux.xyz](https://matterlinux.xyz)
2023-12-09 16:25:38 +00:00
2023-12-09 16:29:07 +00:00
### Deployment
2024-08-13 21:32:48 +00:00
Web server can be built and deployed with docker compose using the following
configuration file:
```yaml
version: "3"
services:
website:
image: matterwebsite
restart: unless-stopped
build:
context: ./
ports:
- "127.0.0.1:9878:9878"
volumes:
- "./content:/app/content"
2023-12-09 16:25:38 +00:00
```
2024-08-13 21:32:48 +00:00
After saving the configuration file, you can build and run the docker container:
```bash
2024-01-17 12:22:46 +00:00
docker-compose up -d
2023-12-09 16:25:38 +00:00
```
2024-08-13 21:32:48 +00:00
### Managing content
Website content can be managed by editing JSON and markdown files
under the `content` direcotry.
2024-08-13 21:32:48 +00:00
MatterLinux's website content directory can be found in the
2024-01-07 18:20:31 +00:00
[content](https://git.matterlinux.xyz/Matter/content)
repository.