use postgres as backend
This commit is contained in:
parent
d94db7184c
commit
61ed1617d8
@ -1,6 +1,6 @@
|
||||
FROM docker.io/alpine:3.16 AS builder
|
||||
FROM docker.io/alpine:3.17 AS builder
|
||||
|
||||
ENV VERSION=11.0.0-SNAPSHOT.20220625052932
|
||||
ENV VERSION=11.0.0-SNAPSHOT.20230217142243
|
||||
RUN apk add --no-cache \
|
||||
openjdk17-jdk \
|
||||
maven \
|
||||
@ -13,7 +13,7 @@ RUN git checkout "$VERSION"
|
||||
RUN mvn package -DskipTests
|
||||
|
||||
|
||||
FROM docker.io/thallian/alpine-s6:3.16
|
||||
FROM docker.io/thallian/confd-env:3.17-3.1.3.0
|
||||
|
||||
ENV JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
|
||||
ENV AIRSONIC_DIR=/home/airsonic
|
||||
|
14
README.md
14
README.md
@ -6,5 +6,19 @@
|
||||
- `/home/airsonic/playlists`
|
||||
- `/home/airsonic/podcasts`
|
||||
|
||||
# Environment Variables
|
||||
## DB_URL
|
||||
|
||||
JDBC url for the postgres conection.
|
||||
|
||||
## DB_USER
|
||||
- default: airsonic
|
||||
|
||||
Username with which to connect to the database.
|
||||
|
||||
## DB_PASSWORD
|
||||
|
||||
Password for the databse connection.
|
||||
|
||||
# Ports
|
||||
- 8080
|
||||
|
6
rootfs/etc/confd/conf.d/airsonic.properties.toml
Normal file
6
rootfs/etc/confd/conf.d/airsonic.properties.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[template]
|
||||
src = "airsonic.properties.tmpl"
|
||||
dest = "/home/airsonic/data/airsonic.properties"
|
||||
gid = 2222
|
||||
uid = 2222
|
||||
mode = "0660"
|
6
rootfs/etc/confd/templates/airsonic.properties.tmpl
Normal file
6
rootfs/etc/confd/templates/airsonic.properties.tmpl
Normal file
@ -0,0 +1,6 @@
|
||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
spring.datasource.url={{ getenv "DB_URL" }}
|
||||
spring.datasource.username={{ getenv "DB_USER" "airsonic" }}
|
||||
spring.datasource.password={{ getenv "DB_PASSWORD" }}
|
||||
spring.liquibase.parameters.userTableQuote="
|
||||
server.forward-headers-strategy=native
|
1
rootfs/etc/s6-overlay/s6-rc.d/airsonic/dependencies
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/airsonic/dependencies
Normal file
@ -0,0 +1 @@
|
||||
confd
|
Loading…
Reference in New Issue
Block a user