Skip to content

Commit

Permalink
minor in env [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vkotronis committed Oct 25, 2022
1 parent daa511f commit ebdbfb7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ CONFIG_PORT=3000
API_HOST=postgrest
API_PORT=3000
DATABASE_HOST=database
NGINX_HOST=nginx


# Monitor-specific configs
RIS_ID=8522
Expand Down
1 change: 1 addition & 0 deletions artemis-chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data:
redisPort: {{ .Values.redisPort | default "6379" | quote }}
apiHost: {{ .Values.apiHost | default "postgrest" }}
apiPort: {{ .Values.apiPort | default "3000" | quote }}
nginxHost: {{ .Values.nginxHost | default "nginx" }}
configHost: {{ .Values.configHost | default "configuration" }}
configPort: {{ .Values.configPort | default "3000" | quote }}
databaseHost: {{ .Values.databaseHost | default "database" }}
Expand Down
5 changes: 5 additions & 0 deletions artemis-chart/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ spec:
configMapKeyRef:
name: configmap
key: apiHost
- name: NGINX_HOST
valueFrom:
configMapKeyRef:
name: configmap
key: nginxHost
- name: API_KEY
valueFrom:
secretKeyRef:
Expand Down
1 change: 1 addition & 0 deletions artemis-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ configHost: configuration
configPort: 3000
databaseHost: database
restPort: 3000
nginxHost: nginx

# monitor-specific configs
risId: 8522
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ services:
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
SESSION_TIMEOUT: ${SESSION_TIMEOUT}
NGINX_HOST: ${NGINX_HOST}
TESTING: ${TEST_ENV}
mongodb:
image: mongo:4.4.6-bionic
Expand Down
5 changes: 5 additions & 0 deletions docs/envvars.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ Database container IP and port (containers have their name as hostname):
DATABASE_HOST=database
```

Nginx container IP (containers have their name as hostname):
```
NGINX_HOST=nginx
```

## Monitor-specific configs

Unique ID to be used for RIPE RIS BGP update streaming (recommended: use ASN)
Expand Down
1 change: 1 addition & 0 deletions vagrant-vm/vagrant-docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ services:
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
SESSION_TIMEOUT: ${SESSION_TIMEOUT}
NGINX_HOST: ${NGINX_HOST}
TESTING: ${TEST_ENV}
mongodb:
image: mongo:4.4.6-bionic
Expand Down

0 comments on commit ebdbfb7

Please sign in to comment.