🔧 Interpolating hostname of Docker Host
This commit is contained in:
@@ -8,6 +8,8 @@ services:
|
||||
image: frishi/threetwo
|
||||
container_name: threetwo-ui
|
||||
env_file: ./docker-compose.env
|
||||
environment:
|
||||
DOCKERHOST: "{{.Node.Hostname}}"
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export const COMICBOOKINFO_SERVICE_URI = "http://localhost:3080/api/comicvine/";
|
||||
export const API_BASE_URI = "http://localhost:8050/api/";
|
||||
export const SOCKET_BASE_URI = "http://ghost:8051/";
|
||||
export const SOCKET_BASE_URI =
|
||||
process.env.DOCKERHOST + ":8051" || "ws://localhost:8051";
|
||||
|
||||
Reference in New Issue
Block a user