Renaming deployment service to worker service for its expansion plans.
This commit is contained in:
parent
15f8328770
commit
7845118fb3
|
@ -1 +0,0 @@
|
||||||
../packages/deployment/
|
|
|
@ -17,16 +17,16 @@ services:
|
||||||
LOGO_URL: ${LOGO_URL}
|
LOGO_URL: ${LOGO_URL}
|
||||||
PORT: ${APP_PORT}
|
PORT: ${APP_PORT}
|
||||||
depends_on:
|
depends_on:
|
||||||
- deployment-service
|
- worker-service
|
||||||
|
|
||||||
deployment-service:
|
worker-service:
|
||||||
build: ./deployment
|
build: ./worker
|
||||||
ports:
|
ports:
|
||||||
- "${DEPLOYMENT_PORT}:${DEPLOYMENT_PORT}"
|
- "${WORKER_PORT}:${WORKER_PORT}"
|
||||||
environment:
|
environment:
|
||||||
SELF_HOSTED: 1,
|
SELF_HOSTED: 1,
|
||||||
DEPLOYMENT_API_KEY: ${DEPLOYMENT_API_KEY}
|
DEPLOYMENT_API_KEY: ${WORKER_API_KEY}
|
||||||
PORT: ${DEPLOYMENT_PORT}
|
PORT: ${WORKER_PORT}
|
||||||
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
||||||
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
||||||
RAW_MINIO_URL: http://nginx-service:${MINIO_PORT}
|
RAW_MINIO_URL: http://nginx-service:${MINIO_PORT}
|
||||||
|
|
|
@ -2,11 +2,11 @@ MINIO_ACCESS_KEY=budibase
|
||||||
MINIO_SECRET_KEY=budibase
|
MINIO_SECRET_KEY=budibase
|
||||||
COUCH_DB_PASSWORD=budibase
|
COUCH_DB_PASSWORD=budibase
|
||||||
COUCH_DB_USER=budibase
|
COUCH_DB_USER=budibase
|
||||||
DEPLOYMENT_API_KEY=budibase
|
WORKER_API_KEY=budibase
|
||||||
BUDIBASE_ENVIRONMENT=PRODUCTION
|
BUDIBASE_ENVIRONMENT=PRODUCTION
|
||||||
HOSTING_URL="http://localhost:4001"
|
HOSTING_URL="http://localhost:4001"
|
||||||
LOGO_URL=https://logoipsum.com/logo/logo-15.svg
|
LOGO_URL=https://logoipsum.com/logo/logo-15.svg
|
||||||
APP_PORT=4002
|
APP_PORT=4002
|
||||||
MINIO_PORT=4003
|
MINIO_PORT=4003
|
||||||
COUCH_DB_PORT=4004
|
COUCH_DB_PORT=4004
|
||||||
DEPLOYMENT_PORT=4006
|
WORKER_PORT=4006
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
../packages/worker/
|
|
@ -1,6 +1,6 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
SELF_HOSTED: process.env.SELF_HOSTED,
|
SELF_HOSTED: process.env.SELF_HOSTED,
|
||||||
DEPLOYMENT_API_KEY: process.env.DEPLOYMENT_API_KEY,
|
WORKER_API_KEY: process.env.WORKER_API_KEY,
|
||||||
PORT: process.env.PORT,
|
PORT: process.env.PORT,
|
||||||
MINIO_ACCESS_KEY: process.env.MINIO_ACCESS_KEY,
|
MINIO_ACCESS_KEY: process.env.MINIO_ACCESS_KEY,
|
||||||
MINIO_SECRET_KEY: process.env.MINIO_SECRET_KEY,
|
MINIO_SECRET_KEY: process.env.MINIO_SECRET_KEY,
|
|
@ -33,7 +33,7 @@ destroyable(server)
|
||||||
server.on("close", () => console.log("Server Closed"))
|
server.on("close", () => console.log("Server Closed"))
|
||||||
|
|
||||||
module.exports = server.listen(env.PORT || 4002, async () => {
|
module.exports = server.listen(env.PORT || 4002, async () => {
|
||||||
console.log(`Deployment running on ${JSON.stringify(server.address())}`)
|
console.log(`Worker running on ${JSON.stringify(server.address())}`)
|
||||||
})
|
})
|
||||||
|
|
||||||
process.on("uncaughtException", err => {
|
process.on("uncaughtException", err => {
|
Loading…
Reference in New Issue