-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 1.49 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
version: '3.7'
services:
app:
container_name: kukkuu-ui
build:
context: .
target: ${DOCKER_TARGET:-development} # select the docker container from dockerFile
args:
VITE_ORIGIN: http://localhost:3000
VITE_API_URI: https://kukkuu.api.test.hel.ninja/graphql
VITE_OIDC_SERVER_TYPE: KEYCLOAK
VITE_OIDC_RETURN_TYPE: 'code'
VITE_OIDC_AUTHORITY: https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus/
VITE_OIDC_CLIENT_ID: 'kukkuu-ui-dev'
VITE_OIDC_KUKKUU_API_CLIENT_ID: 'kukkuu-api-dev'
VITE_OIDC_SCOPE: 'openid profile email'
VITE_OIDC_AUDIENCES: kukkuu-api-dev,profile-api-test
VITE_ADMIN_TICKET_VALIDATION_URL: https://kukkuu-admin.test.hel.ninja/check-ticket-validity
VITE_CMS_URI: https://kukkuu.app-staging.hkih.hion.dev//graphql
VITE_HELSINKI_PROFILE_URL: https://profiili.test.hel.ninja/loginsso
VITE_MATOMO_URL_BASE: https://webanalytics.digiaiiris.com/js/
VITE_MATOMO_SITE_ID: 813
VITE_MATOMO_ENABLED: 0
VITE_IDLE_TIMEOUT_IN_MS: 3600000 # 60 * 60 * 1000ms = 60min
environment:
NODE_ENV: ${DOCKER_TARGET:-development} # which node env the build uses. NOTE: Usually same as the ${DOCKER_TARGET}.
VITE_ENVIRONMENT: ${DOCKER_TARGET:-development}
# env_file: '.env.development.local'
volumes:
- '.:/app'
- '/app/node_modules'
ports:
- '3000:3000' # for development mode
- '8080:8080' # for production mode