🐳 Removed the duplicated env var

This commit is contained in:
2021-11-01 09:35:33 -07:00
parent d90bf44210
commit efe5416e5f
4 changed files with 6 additions and 7 deletions

View File

@@ -1 +0,0 @@
DOCKER_HOST=rook

View File

@@ -8,7 +8,7 @@ services:
container_name: threetwo-ui container_name: threetwo-ui
env_file: ./docker-compose.env env_file: ./docker-compose.env
environment: environment:
DOCKER_HOST: rook UNDERLYING_HOSTNAME: rook
restart: unless-stopped restart: unless-stopped
ports: ports:
- "8050:8050" - "8050:8050"

View File

@@ -11,27 +11,27 @@ export const hostURIBuilder = (options: Record<string, string>): string => {
export const COMICBOOKINFO_SERVICE_URI = hostURIBuilder({ export const COMICBOOKINFO_SERVICE_URI = hostURIBuilder({
protocol: "http", protocol: "http",
host: process.env.DOCKER_HOST || "localhost", host: process.env.UNDERLYING_HOSTNAME || "localhost",
port: "3080", port: "3080",
apiPath: "/api/comicvine", apiPath: "/api/comicvine",
}); });
export const API_BASE_URI = hostURIBuilder({ export const API_BASE_URI = hostURIBuilder({
protocol: "http", protocol: "http",
host: process.env.DOCKER_HOST || "localhost", host: process.env.UNDERLYING_HOSTNAME || "localhost",
port: "8050", port: "8050",
apiPath: "/api", apiPath: "/api",
}); });
export const IMPORT_SERVICE_HOST = hostURIBuilder({ export const IMPORT_SERVICE_HOST = hostURIBuilder({
protocol: "http", protocol: "http",
host: process.env.DOCKER_HOST || "localhost", host: process.env.UNDERLYING_HOSTNAME || "localhost",
port: "3000", port: "3000",
apiPath: ``, apiPath: ``,
}); });
export const IMPORT_SERVICE_BASE_URI = hostURIBuilder({ export const IMPORT_SERVICE_BASE_URI = hostURIBuilder({
protocol: "http", protocol: "http",
host: process.env.DOCKER_HOST || "localhost", host: process.env.UNDERLYING_HOSTNAME || "localhost",
port: "3000", port: "3000",
apiPath: "/api/import", apiPath: "/api/import",
}); });

View File

@@ -98,7 +98,7 @@ module.exports = (env) => {
title: "express-typescript-react", title: "express-typescript-react",
}), }),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
"process.env.DOCKER_HOST": JSON.stringify(process.env.DOCKER_HOST), "process.env.UNDERLYING_HOSTNAME": JSON.stringify(process.env.UNDERLYING_HOSTNAME),
}), }),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: "./css/[name].css", filename: "./css/[name].css",