2025-02-03 00:26:07 +10:30
|
|
|
# Notes server
|
2024-09-24 23:42:37 +09:30
|
|
|
|
2025-02-03 00:26:07 +10:30
|
|
|
## Build and run
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Build/rebuild the image.
|
|
|
|
|
docker build --no-cache -t notes-server .
|
|
|
|
|
|
|
|
|
|
# Run the image, listening on port 8080.
|
|
|
|
|
docker run -p 8080:80 -t notes-server
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Auth credentials setup
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Overwrite the htpasswd file with new user credentials.
|
|
|
|
|
htpasswd -nb username password > auth.htpasswd
|
|
|
|
|
```
|