Skip to content

Commit fc99136

Browse files
Flatnote env refactor (#261)
1 parent 62d7d72 commit fc99136

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

services/flatnotes/.env

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@ TS_AUTHKEY=
1515

1616
# Optional Service variables
1717
# PUID=1000
18+
19+
#Time Zone for container
20+
TZ=Europe/Amsterdam
21+
22+
# Flatnotes environment
23+
FLATNOTES_AUTH_TYPE=password
24+
FLATNOTES_USERNAME=user
25+
FLATNOTES_PASSWORD=changeMe!
26+
FLATNOTES_SECRET_KEY=aLongRandomSeriesOfCharacters

services/flatnotes/compose.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ services:
5353
network_mode: service:tailscale # Sidecar configuration to route ${SERVICE} through Tailscale
5454
container_name: app-${SERVICE} # Name for local container management
5555
environment:
56-
PUID: 1000
57-
PGID: 1000
58-
TZ: Europe/Amsterdam
59-
FLATNOTES_AUTH_TYPE: "password"
60-
FLATNOTES_USERNAME: "user"
61-
FLATNOTES_PASSWORD: "changeMe!"
62-
FLATNOTES_SECRET_KEY: "aLongRandomSeriesOfCharacters"
56+
- PUID=1000
57+
- PGID=1000
58+
- TZ=${TZ}
59+
- FLATNOTES_AUTH_TYPE=${FLATNOTES_AUTH_TYPE}
60+
- FLATNOTES_USERNAME=${FLATNOTES_USERNAME}
61+
- FLATNOTES_PASSWORD=${FLATNOTES_PASSWORD}
62+
- FLATNOTES_SECRET_KEY=${FLATNOTES_SECRET_KEY}
6363
volumes:
6464
- ./${SERVICE}-data:/data
6565
depends_on:
@@ -71,4 +71,4 @@ services:
7171
# timeout: 10s # Time to wait for the check to succeed
7272
# retries: 3 # Number of retries before marking as unhealthy
7373
# start_period: 30s # Time to wait before starting health checks
74-
restart: always
74+
restart: always

0 commit comments

Comments
 (0)