Legg til build.sh, run.sh og .env.example
build.sh bygger imaget med build-dato og git-revisjon, run.sh starter containeren idempotent (podman run --replace) med innstillinger fra .env. compose.yaml leser nå samme .env. Alle variabler har standardverdier; .env.example dokumenterer dem. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JcEy43fNYpwg6K6oTKakWR
This commit is contained in:
parent
d6e5243d25
commit
5f6fc252a7
6 changed files with 89 additions and 15 deletions
16
compose.yaml
16
compose.yaml
|
|
@ -1,19 +1,15 @@
|
|||
# podman-compose up -d (eller: podman compose up -d)
|
||||
# Alternativ til run.sh: podman compose up -d
|
||||
# Leser innstillinger fra .env (kopier .env.example).
|
||||
services:
|
||||
soapbox:
|
||||
image: localhost/soapbox:latest
|
||||
container_name: soapbox
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
- "127.0.0.1:${SOAPBOX_PORT:-8080}:8080"
|
||||
volumes:
|
||||
- soapbox-data:/data
|
||||
environment:
|
||||
SOAPBOX_SITE_URL: https://blog.domene.no
|
||||
SOAPBOX_BASE_PATH: ""
|
||||
SOAPBOX_THEME: green
|
||||
# Settes kun første gang; ignoreres når en hovedbruker finnes.
|
||||
SOAPBOX_OWNER_USER: olemd
|
||||
SOAPBOX_OWNER_PASSWORD: bytt-meg-nå
|
||||
- ${SOAPBOX_VOLUME:-soapbox-data}:/data:Z
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
soapbox-data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue