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