Skip to content

Commit b4bcb0d

Browse files
authored
chore(compose): swagger ui fixes (#303)
* chore(compose): swagger ui fixes * chore(compose): restart policy for clamav
1 parent 70c400b commit b4bcb0d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ services:
111111
LOB_SECURITY_CLAMAV_ENABLED: true
112112
LOB_SECURITY_CLAMAV_HOST: clamav
113113
LOB_SECURITY_CLAMAV_PORT: 3310
114+
SECURITY_CSPPOLICY: "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; connect-src 'self' ${API_URL:-http://localhost:9000} ${KC_BASE_URL:-http://localhost:8080}; frame-src ${API_URL:-http://localhost:9000}"
115+
SERVER_USEFORWARDHEADERS: true
116+
SERVER_FORWARDHEADERSSTRATEGY: framework
117+
OAUTH2_REDIRECT_URL: ${API_URL:-http://localhost:9000}/swagger-ui/oauth2-redirect.html
114118
working_dir: /app
115119
entrypoint: ${ENTRYPOINT:-java --enable-preview -jar /app.jar}
116120
healthcheck:
@@ -141,6 +145,7 @@ services:
141145

142146
clamav:
143147
image: clamav/clamav:1.4.2
148+
restart: unless-stopped
144149
platform: linux/amd64
145150
ports:
146151
- "3310:3310"

0 commit comments

Comments
 (0)