-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (22 loc) · 987 Bytes
/
Dockerfile
File metadata and controls
22 lines (22 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM nginx:1.20.2
COPY nginx.conf /etc/nginx/nginx.conf.org
COPY health-check.conf /etc/nginx/
ENV EXPOSED_PORT 443
ENV SERVER_NAME_DASHBOARD dashboard.opex.dev
ENV SERVER_NAME_ADMIN_PANEL admin.opex.dev
ENV SERVER_NAME_WEB_APP app.opex.dev
ENV SERVER_NAME_AUTH auth.opex.dev
ENV SERVER_NAME_HEALTH health.opex.dev
ENV SERVER_NAME_API api.opex.dev
ENV SERVER_NAME_KIBANA kibana.opex.dev
ENV SERVER_NAME_GRAFANA grafana.opex.dev
ENV SERVER_NAME_MOBILE_APP mobile.opex.dev
ENV SERVER_WALLET_STAT walletstat.opex.dev
ENV SERVER_NAME_KC kc.opex.dev
ENV SERVER_NAME_V2_AUTH v2auth.opex.dev
ENTRYPOINT sh -c 'envsubst \
\$EXPOSED_PORT,\$SERVER_NAME_DASHBOARD,\$SERVER_NAME_ADMIN_PANEL,\$SERVER_NAME_WEB_APP,\$SERVER_NAME_AUTH,\$SERVER_NAME_HEALTH,\$SERVER_NAME_API,\$SERVER_NAME_MOBILE_APP,\$SERVER_WALLET_STAT,\$SERVER_NAME_GRAFANA,\$SERVER_NAME_KIBANA,\$SERVER_NAME_KC,\$SERVER_NAME_V2_AUTH \
< /etc/nginx/nginx.conf.org \
| tee /etc/nginx/nginx.conf \
&& nginx -g "daemon off;"'
EXPOSE 443