Skip to content

Commit f6fe773

Browse files
committed
Update to work locally (non-Dockerized)
1 parent 3d903ea commit f6fe773

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/.micronaut/
66
/build/
77
AuthGenHash/bin
8+
setenv.sh

DockerfileFrontend-dev

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Build the frontend and serve with nginx
21
FROM node:24
32

43
COPY frontend frontend

UnityAuth/docker-compose.api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
environment:
2222
MICRONAUT_ENVIRONMENTS: docker
2323
ports:
24-
- "8081:8080"
24+
- "9090:9090"
2525

2626
networks:
2727
default:

UnityAuth/src/main/resources/application-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Config for Docker environment. See docker-compose.local.yml.
22
# Hostname and port of the API and frontend containers accessed from the host machine are:
3-
# - API server: unity-auth-api:8081 (maps to port 8080 within the container)
3+
# - API server: unity-auth-api:9090 (maps to port 9090 within the container)
44
# - Frontend: unity-auth-ui-dev:3001 or localhost:3001 (maps to port 3000 within the container)
55
# Note: Add DNS entries for unity-auth-api, unity-auth-ui-dev hostnames to your host, e.g.
66
# /etc/hosts on Linux or Mac.
@@ -21,7 +21,7 @@ micronaut:
2121
- localhost:3001
2222
- http://127.0.0.1:3001
2323
localhost-pass-through: true
24-
port: 8080
24+
port: 9090
2525
security:
2626
authentication: bearer
2727
datasources:

setenv.sh.example

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
export MICRONAUT_ENVIRONMENTS=<MICRONAUT_ENVIRONMENTS> # Example: local
4+
# Don't set MICRONAUT_SERVER_PORT environment variable since it seems to be picked
5+
# up by both the UnityAuth server and the Test Resources server which cause port conflict.
6+
# Instead, set port for the main server in the application-*.yml file for the
7+
# specific config environment, e.g., application-local.yml.
8+
9+
export LIBRE311_UI_BASE_URL=<LIBRE311_UI_BASE_URL> # Example: http://localhost:3000
10+
11+
export VITE_BACKEND_URL=<VITE_BACKEND_URL> # Example: http://localhost:8081
12+
13+
# Update these if necessary, for example, to use a local database
14+
export DATASOURCES_DEFAULT_URL=<DATASOURCES_DEFAULT_URL>
15+
export DATASOURCES_DEFAULT_USERNAME=<DATASOURCES_DEFAULT_USERNAME>
16+
export DATASOURCES_DEFAULT_PASSWORD=<DATASOURCES_DEFAULT_PASSWORD>

0 commit comments

Comments
 (0)