generated from PrivateAIM/typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (49 loc) · 2.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
# nodeuidev:
# image: node-ui:latest
# container_name: nodeui-dev
# deploy:
# restart_policy:
# condition: on-failure
# delay: 5s
# max_attempts: 3
# window: 120s
# environment:
# NODE_ENV: "development"
# # The "NUXT_" prefix overrides the env variable set during build time (for prod only)
# NUXT_PUBLIC_BASE_URL: "http://localhost:3000" # URL of the website
# NUXT_PUBLIC_HUB_ADAPTER_URL: "http://localhost:5000"
# NUXT_OIDC_PROVIDERS_KEYCLOAK_BASE_URL: "http://localhost:8080/realms/flame"
# NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID: "node-ui"
# NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET: "xxx"
# ports:
# - '3000:3000'
# restart: always
nodeui:
image: node-prod:latest
container_name: nodeui-prod
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
environment:
NODE_ENV: "production"
NUXT_PUBLIC_BASE_URL: "http://localhost:3000" # URL of the website
NUXT_PUBLIC_HUB_ADAPTER_URL: "http://localhost:8081"
NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID: "node-ui"
NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET: ""
NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI: "http://localhost:3000/auth/keycloak/callback"
NUXT_OIDC_PROVIDERS_KEYCLOAK_AUTHORIZATION_URL: "http://localhost:8080/realms/flame/protocol/openid-connect/auth"
NUXT_OIDC_PROVIDERS_KEYCLOAK_TOKEN_URL: "http://localhost:8080/realms/flame/protocol/openid-connect/token"
NUXT_OIDC_PROVIDERS_KEYCLOAK_USERINFO_URL: "http://localhost:8080/realms/flame/protocol/openid-connect/userinfo"
NUXT_OIDC_PROVIDERS_KEYCLOAK_OPEN_ID_CONFIGURATION: "http://localhost:8080/realms/flame/.well-known/openid-configuration"
NUXT_OIDC_PROVIDERS_KEYCLOAK_LOGOUT_URL: "http://localhost:8080/realms/flame/protocol/openid-connect/logout"
NUXT_OIDC_PROVIDERS_KEYCLOAK_LOGOUT_REDIRECT_URI: "http://localhost:3000"
ports:
- '3000:3000'
restart: always
networks:
flame:
driver: bridge