Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
siewer committed Dec 11, 2024
1 parent 6a118c5 commit 330bb01
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ services:
- dependency_track_data:/root/.dependency-track
depends_on:
- flowdb
restart: always # Add this line
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s

flowdb:
image: postgres:latest
Expand Down
3 changes: 3 additions & 0 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"proxyConfig": "nginx/proxy.conf.json"
},
"configurations": {
"production": {
"buildTarget": "coreui-free-angular-admin-template:build:production"
Expand Down
14 changes: 14 additions & 0 deletions frontend/nginx/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"/api": {
"target": "http://localhost:8888",
"secure": false,
"changeOrigin": true,
"pathRewrite": { "^/api": "/api" }
},
"/oauth2": {
"target": "http://localhost:8888",
"secure": false,
"changeOrigin": true,
"pathRewrite": { "^/oauth2": "/oauth2" }
}
}

0 comments on commit 330bb01

Please sign in to comment.