🔧 Updated LIBRARY_SOCKET_HOST
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
LIBRARY_SOCKET_HOST=ws://importapi:3001
|
||||||
@@ -78,7 +78,6 @@ services:
|
|||||||
- "3001:3001"
|
- "3001:3001"
|
||||||
environment:
|
environment:
|
||||||
SERVICES: api
|
SERVICES: api
|
||||||
DOCKER_RABBITMQ_CONNECTION_STRING: 'amqp://user:bitnami@rabbitmq:5672'
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.threetwo-import-api.rule=Host(`localhost`)"
|
- "traefik.http.routers.threetwo-import-api.rule=Host(`localhost`)"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const IMPORT_SERVICE_BASE_URI = hostURIBuilder({
|
|||||||
|
|
||||||
export const SOCKET_BASE_URI = hostURIBuilder({
|
export const SOCKET_BASE_URI = hostURIBuilder({
|
||||||
protocol: "http",
|
protocol: "http",
|
||||||
host: process.env.DOCKER_HOST || "localhost",
|
host: process.env.LIBRARY_SOCKET_HOST || "localhost",
|
||||||
port: "3001",
|
port: "3001",
|
||||||
apiPath: `/`,
|
apiPath: `/`,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ module.exports = (env) => {
|
|||||||
}),
|
}),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
"process.env.DOCKER_HOST": JSON.stringify(process.env.DOCKER_HOST),
|
"process.env.DOCKER_HOST": JSON.stringify(process.env.DOCKER_HOST),
|
||||||
|
"process.env.LIBRARY_SOCKET_HOST": JSON.stringify(
|
||||||
|
process.env.LIBRARY_SOCKET_HOST,
|
||||||
|
),
|
||||||
}),
|
}),
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: "./css/[name].css",
|
filename: "./css/[name].css",
|
||||||
|
|||||||
Reference in New Issue
Block a user