new: docker image workflow
All checks were successful
Build docker image / build (push) Successful in 52s
All checks were successful
Build docker image / build (push) Successful in 52s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
23
README.md
23
README.md
@ -1,25 +1,24 @@
|
||||
# website | MatterLinux website
|
||||
|
||||

|
||||
|
||||
Soruce code of Matterlinux's offical website, which is
|
||||
located at [matterlinux.xyz](https://matterlinux.xyz)
|
||||
|
||||
### Deployment
|
||||
Web server can be built and deployed with docker compose using the following
|
||||
configuration file:
|
||||
Web server can be deployed with docker compose using the following configuration file:
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
website:
|
||||
image: matterwebsite
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: ./
|
||||
container_name: matterwebsite
|
||||
image: git.matterlinux.xyz/matter/website
|
||||
ports:
|
||||
- "127.0.0.1:9878:9878"
|
||||
- "127.0.0.1:9878:9878"
|
||||
volumes:
|
||||
- "./content:/app/content"
|
||||
- "./content:/app/content"
|
||||
restart: unless-stopped
|
||||
```
|
||||
After saving the configuration file, you can build and run the docker container:
|
||||
After saving the configuration file, you can run the docker container:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
@ -28,6 +27,6 @@ docker-compose up -d
|
||||
Website content can be managed by editing JSON and markdown files
|
||||
under the `content` direcotry.
|
||||
|
||||
MatterLinux's website content directory can be found in the
|
||||
MatterLinux's website content directory can be found in the
|
||||
[content](https://git.matterlinux.xyz/Matter/content)
|
||||
repository.
|
||||
|
Reference in New Issue
Block a user