mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
commit
c00ea88f73
34
README.md
34
README.md
@ -18,4 +18,36 @@ Because nobody should have to deal with a homemade spreadsheet or a shoebox full
|
||||
- Bootstrap-DatePicker
|
||||
- SweetAlert2
|
||||
- CsvHelper
|
||||
- Chart.js
|
||||
- Chart.js
|
||||
|
||||
## Docker
|
||||
|
||||
### manual
|
||||
|
||||
- build
|
||||
|
||||
```
|
||||
docker build -t hargata/lubelog:latest .
|
||||
```
|
||||
|
||||
- run
|
||||
|
||||
```
|
||||
docker run -d hargata/lubelog:latest
|
||||
```
|
||||
|
||||
add `-v` for persistent volumes as needed. Have a look at the docker-compose.yml for examples.
|
||||
|
||||
## docker-compose
|
||||
|
||||
- build image
|
||||
|
||||
```
|
||||
docker compose build
|
||||
```
|
||||
|
||||
- run
|
||||
|
||||
```
|
||||
docker compose build
|
||||
```
|
||||
|
||||
47
docker-compose.yml
Normal file
47
docker-compose.yml
Normal file
@ -0,0 +1,47 @@
|
||||
---
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: hargata/lubelog:latest
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
# volumes used to keep data persistent
|
||||
volumes:
|
||||
- config:/App/config
|
||||
- data:/App/data
|
||||
- documents:/App/wwwroot/documents
|
||||
- images:/App/wwwroot/images
|
||||
- log:/App/log
|
||||
# expose port and/or use serving via traefik
|
||||
ports:
|
||||
- 8080:8080
|
||||
# traefik configurations, including networks can be commented out if not needed
|
||||
networks:
|
||||
- traefik-ingress
|
||||
labels:
|
||||
## Traefik General
|
||||
# We set 'enable by default' to false, so this tells Traefik we want it to connect here
|
||||
traefik.enable: true
|
||||
# define network for traefik<>app communication
|
||||
traefik.docker.network: traefik-ingress
|
||||
## HTTP Routers
|
||||
traefik.http.routers.whoami.entrypoints: https
|
||||
traefik.http.routers.whoami.rule: Host(`lubelog.mydomain.tld`)
|
||||
## Middlewares
|
||||
#traefik.http.routers.whoami.middlewares: authentik@docker
|
||||
# none
|
||||
## HTTP Services
|
||||
traefik.http.services.whoami.loadbalancer.server.port: 5000
|
||||
|
||||
volumes:
|
||||
config:
|
||||
data:
|
||||
documents:
|
||||
images:
|
||||
log:
|
||||
|
||||
networks:
|
||||
app:
|
||||
traefik-ingress:
|
||||
external: true
|
||||
Loading…
x
Reference in New Issue
Block a user