notes/docker/install.sh

16 lines
379 B
Bash
Raw Normal View History

2025-02-06 00:14:43 +10:30
#!/bin/bash
# Build the notes-server image.
docker build --no-cache -t notes-server .
# Run the notes-server image.
docker run -d \
--name notes-server \
-v "/var/www/html/notes/hugo/public:/usr/share/nginx/html" \
2025-02-06 00:14:43 +10:30
-p 42069:80 \
notes-server
# Install and enable the systemctl service.
cp notes.service /etc/systemd/system/notes.service
systemctl enable notes.service