Convert to docker compose

This commit is contained in:
Brad Treloar 2025-09-03 23:32:03 +09:30
parent 82348ddc7c
commit 86fc7ca259
5 changed files with 22 additions and 48 deletions

View file

@ -1,4 +0,0 @@
#!/bin/bash
docker container rm notes-server
docker build --no-cache -t notes-server .

View file

@ -1,21 +0,0 @@
#!/bin/bash
# Remove the existing container
systemctl stop notes.service
systemctl disable notes.service
docker container stop notes-server
docker container rm notes-server
# Build the notes-server image.
docker build --no-cache -t notes-server .
# Run the notes-server image.
docker run -d \
--name notes-server \
-v "${PWD}/../hugo/public:/usr/share/nginx/html" \
-p 42069:80 \
notes-server
# Install and enable the systemctl service.
cp notes.service /etc/systemd/system/notes.service
systemctl enable notes.service

View file

@ -1,9 +0,0 @@
#!/bin/bash
# Run the notes-server image.
docker run \
--name notes-server \
-v "${PWD}/../hugo/public:/usr/share/nginx/html" \
-p 42069:80 \
notes-server