Skip to content

Commit dc4a7a0

Browse files
Robin Alexanderikke-t
authored andcommitted
Switch to environment files (db.env and lb.env)
1 parent d5edfb6 commit dc4a7a0

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

.examples/podman/README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ podman run --name mariadb-lb \
2727
--detach \
2828
--replace \
2929
--network librebooking \
30-
-e MYSQL_ROOT_PASSWORD=db_root_pwd \
31-
-e TZ=Europe/Helsinki \
32-
-e PUID=1000 \
33-
-e PGID=1000 \
34-
-e MYSQL_DATABASE=db \
35-
-e MYSQL_USER=lb \
36-
-e MYSQL_PASSWORD=lb-test \
30+
--env-file db.env \
3731
-v db-conf:/config:U \
3832
-p 3306:3306 \
3933
docker.io/linuxserver/mariadb:10.6.13
@@ -43,15 +37,7 @@ podman run --name lb \
4337
--replace \
4438
--hostname librebooking \
4539
--network librebooking \
46-
-e LB_DATABASE_NAME=db \
47-
-e LB_DATABASE_USER=lb \
48-
-e LB_DATABASE_PASSWORD=lb-test \
49-
-e LB_DATABASE_HOSTSPEC=mariadb-lb \
50-
-e LB_INSTALL_PASSWORD=installme \
51-
-e LB_LOGGING_FOLDER=/var/log/librebooking \
52-
-e LB_LOGGING_LEVEL=DEBUG \
53-
-e LB_LOGGING_SQL=false \
54-
-e LB_DEFAULT_TIMEZONE=Europe/Helsinki \
40+
--env-file lb.env \
5541
-p 8080:8080 \
5642
--volume lb-images.volume:/var/www/html/Web/uploads/images \
5743
--volume lb-reservation.volume:/var/www/html/Web/uploads/reservation \

.examples/podman/db.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
MYSQL_ROOT_PASSWORD=db_root_pwd
2+
TZ=Europe/Helsinki
3+
PUID=1000
4+
PGID=1000

.examples/podman/lb.env

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
LB_INSTALL_PASSWORD=app_install_pwd
2+
LB_DATABASE_PASSWORD=db_user_pwd
3+
LB_DATABASE_NAME=librebooking
4+
LB_DATABASE_USER=lb_user
5+
LB_DATABASE_HOSTSPEC=db
6+
LB_LOGGING_FOLDER=/var/log/librebooking
7+
LB_LOGGING_LEVEL=DEBUG
8+
LB_LOGGING_SQL=false
9+
LB_DEFAULT_TIMEZONE=Europe/Helsinki
10+
LB_UPLOADS_IMAGE_UPLOAD_URL=Web/uploads/images
11+
LB_UPLOADS_RESERVATION_ATTACHMENT_PATH=Web/uploads/reservation

0 commit comments

Comments
 (0)