🔧 Interpolating hostname of Docker Host

This commit is contained in:
2021-10-19 12:40:13 -07:00
parent 98e49a6e73
commit c3a91ef39f
2 changed files with 4 additions and 1 deletions

View File

@@ -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"

View File

@@ -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";