Skip to content

Commit 2940501

Browse files
committed
Use same port for both Docker and local environment
1 parent a9cbd6c commit 2940501

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

DockerfileFrontend-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COPY frontend frontend
44
WORKDIR frontend
55
RUN npm install
66

7-
EXPOSE 3000
7+
EXPOSE 3001
88

99
# Start the app in development mode
1010
ENTRYPOINT ["npm", "run", "dev"]

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ micronaut:
1818
- localhost:3000
1919
- http://127.0.0.1:3000
2020
- http://libre311-ui:3000
21+
- http://libre311-ui-dev:3000
2122
- http://localhost:3001
2223
- localhost:3001
2324
- http://127.0.0.1:3001

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ micronaut:
1111
- http://localhost:3000
1212
- localhost:3000
1313
- http://127.0.0.1:3000
14+
- http://libre311-ui:3000
15+
- http://libre311-ui-dev:3000
1416
- http://localhost:3001
1517
- localhost:3001
1618
- http://127.0.0.1:3001
19+
- http://unity-auth-ui:3001
20+
- http://unity-auth-ui-dev:3001
1721
localhost-pass-through: true
18-
port: 8081
22+
port: 9090
1923
security:
2024
authentication: bearer
2125
datasources:

docker-compose.local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
environment:
3131
VITE_BACKEND_URL: http://unity-auth-api:9090
3232
ports:
33-
- "3001:3000"
33+
- "3001:3001"
3434

3535
## UI Service - Production environment
3636
## Start by: docker compose -f docker-compose.local.yml --profile prod up

frontend/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/setenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export VITE_BACKEND_URL=http://127.0.0.1:8081
1+
export VITE_BACKEND_URL=http://127.0.0.1:9090

frontend/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineConfig({
77
include: ['src/**/*.{test,spec}.{js,ts}']
88
},
99
server: {
10-
port: 3000,
10+
port: 3001,
1111
host: true
1212
}
1313
});

0 commit comments

Comments
 (0)