🔧 Troubleshooting hostname issues

This commit is contained in:
2021-10-27 18:44:56 -07:00
parent e1504c2f11
commit acca2037b4
2 changed files with 4 additions and 3 deletions

View File

@@ -19,9 +19,9 @@ services:
ports: ports:
- "8050:8050" - "8050:8050"
- "3050:3050" - "3050:3050"
- "8051:8051"
depends_on: depends_on:
- db - db
- redis
- nats - nats
- traefik - traefik
- importapi - importapi
@@ -75,6 +75,7 @@ services:
container_name: threetwo-import-api container_name: threetwo-import-api
ports: ports:
- "3000:3000" - "3000:3000"
- "3001:3001"
environment: environment:
SERVICES: api SERVICES: api
DOCKER_RABBITMQ_CONNECTION_STRING: 'amqp://user:bitnami@rabbitmq:5672' DOCKER_RABBITMQ_CONNECTION_STRING: 'amqp://user:bitnami@rabbitmq:5672'

View File

@@ -5,8 +5,8 @@ import thunk from "redux-thunk";
import createRootReducer from "../reducers"; import createRootReducer from "../reducers";
import socketIO from "socket.io-client"; import socketIO from "socket.io-client";
import socketIoMiddleware from "redux-socket.io-middleware"; import socketIoMiddleware from "redux-socket.io-middleware";
const socketHostURI = `${process.env.HOSTNAME}:3001` || `http://localhost:3001`;
const io = socketIO(`http://localhost:3001`); const io = socketIO(socketHostURI);
export const history = createBrowserHistory(); export const history = createBrowserHistory();
const configureStore = (initialState) => { const configureStore = (initialState) => {
const store = createStore( const store = createStore(