Convert to docker compose
This commit is contained in:
parent
82348ddc7c
commit
86fc7ca259
5 changed files with 22 additions and 48 deletions
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker container rm notes-server
|
||||
docker build --no-cache -t notes-server .
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue