🔧 Updated LIBRARY_SOCKET_HOST

This commit is contained in:
2021-10-28 11:54:20 -07:00
parent 086cdb3817
commit 2406c68216
4 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1 @@
LIBRARY_SOCKET_HOST=ws://importapi:3001

View File

@@ -78,7 +78,6 @@ services:
- "3001:3001"
environment:
SERVICES: api
DOCKER_RABBITMQ_CONNECTION_STRING: 'amqp://user:bitnami@rabbitmq:5672'
labels:
- "traefik.enable=true"
- "traefik.http.routers.threetwo-import-api.rule=Host(`localhost`)"

View File

@@ -38,7 +38,7 @@ export const IMPORT_SERVICE_BASE_URI = hostURIBuilder({
export const SOCKET_BASE_URI = hostURIBuilder({
protocol: "http",
host: process.env.DOCKER_HOST || "localhost",
host: process.env.LIBRARY_SOCKET_HOST || "localhost",
port: "3001",
apiPath: `/`,
});

View File

@@ -99,6 +99,9 @@ module.exports = (env) => {
}),
new webpack.DefinePlugin({
"process.env.DOCKER_HOST": JSON.stringify(process.env.DOCKER_HOST),
"process.env.LIBRARY_SOCKET_HOST": JSON.stringify(
process.env.LIBRARY_SOCKET_HOST,
),
}),
new MiniCssExtractPlugin({
filename: "./css/[name].css",