Update envar flow
This commit is contained in:
parent
e02f48f358
commit
c524c985c1
6 changed files with 12 additions and 34 deletions
|
@ -1,2 +0,0 @@
|
|||
PORT=52026
|
||||
REACT_APP_CAIRO_URL=http://localhost:52000
|
|
@ -1 +0,0 @@
|
|||
REACT_APP_CAIRO_URL=http://cairo.dunestorm.net:52000
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,3 +2,6 @@
|
|||
build/
|
||||
node_modules/
|
||||
package-lock.json
|
||||
# Env files
|
||||
.env
|
||||
.env.development
|
||||
|
|
|
@ -1,34 +1,12 @@
|
|||
version: "3"
|
||||
services:
|
||||
cairo.dunestorm.net:
|
||||
image: cairo.dunestorm.net
|
||||
ports:
|
||||
- "52000:52000"
|
||||
environment:
|
||||
- ALEXANDRIA_DATABASE_PASSWORD=${ALEXANDRIA_DATABASE_PASSWORD}
|
||||
|
||||
nubian.dunestorm.net:
|
||||
image: nubian.dunestorm.net
|
||||
ports:
|
||||
- "52001:52001"
|
||||
environment:
|
||||
- ALEXANDRIA_DATABASE_PASSWORD=${ALEXANDRIA_DATABASE_PASSWORD}
|
||||
- CAIRO_URL=http://cairo.dunestorm.net:52000
|
||||
|
||||
khufu.dunestorm.net:
|
||||
image: khufu.dunestorm.net
|
||||
build: .
|
||||
ports:
|
||||
- "80:52026"
|
||||
|
||||
alexandria.dunestorm.net:
|
||||
image: mongo
|
||||
environment:
|
||||
- MONGO_INITDB_ROOT_USERNAME=admin
|
||||
- MONGO_INITDB_ROOT_PASSWORD=${ALEXANDRIA_DATABASE_PASSWORD}
|
||||
volumes:
|
||||
- /home/dunemask/Documents/dev/Dunestorm/mongodb/database:/data/db
|
||||
ports:
|
||||
- "27017:27017"
|
||||
restart: unless-stopped
|
||||
command: --quiet
|
||||
networks:
|
||||
- dunestorm_dev
|
||||
networks:
|
||||
dunestorm_dev:
|
||||
external: true
|
||||
|
|
|
@ -46,8 +46,8 @@
|
|||
},
|
||||
"nodemonConfig": {
|
||||
"env": {
|
||||
"CAIRO_URL": "http://localhost:52000",
|
||||
"NUBIAN_URL": "http://localhost:52001"
|
||||
"CAIRO_PUBLIC_URL": "http://localhost:52000",
|
||||
"NUBIAN_INTERNAL_URL": "http://localhost:52001"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const { createProxyMiddleware } = require("http-proxy-middleware");
|
||||
const cairoUrl = process.env.CAIRO_URL ?? "http://cairo.dunestorm.net:52000";
|
||||
const nubianUrl = process.env.NUBIAN_URL ?? "http://nubian.dunestorm.net:52001";
|
||||
const cairoUrl = process.env.REACT_APP_CAIRO_PUBLIC_URL;
|
||||
const nubianUrl = process.env.NUBIAN_INTERNAL_URL;
|
||||
module.exports = (app) => {
|
||||
// Cairo Proxy
|
||||
app.use("/cairo", createProxyMiddleware({ target: cairoUrl }));
|
||||
|
|
Reference in a new issue