Change Docker image for tenant-manager service and update entrypoint to use sh; modify shebang in manage-tenant.sh to use sh
This commit is contained in:
@@ -8,12 +8,10 @@
|
|||||||
# Scale example: To support 10 tenants with 20 users each:
|
# Scale example: To support 10 tenants with 20 users each:
|
||||||
# docker-compose -f docker-compose-multitenant.yml up -d --scale app=10
|
# docker-compose -f docker-compose-multitenant.yml up -d --scale app=10
|
||||||
|
|
||||||
version: '3.9'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Management Container for multi-tenant scripts
|
# Management Container for multi-tenant scripts
|
||||||
tenant-manager:
|
tenant-manager:
|
||||||
image: bash
|
image: docker:cli
|
||||||
container_name: tenant-manager
|
container_name: tenant-manager
|
||||||
restart: "no"
|
restart: "no"
|
||||||
profiles:
|
profiles:
|
||||||
@@ -21,7 +19,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- .:/workspace
|
- .:/workspace
|
||||||
entrypoint: ["bash", "-c", "cd /workspace && ./manage-tenant.sh \"$$@\"", "--"]
|
entrypoint: ["sh", "-c", "cd /workspace && ./manage-tenant.sh \"$$@\"", "--"]
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.27-alpine
|
image: nginx:1.27-alpine
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
# Script to manage multitenant deployment
|
# Script to manage multitenant deployment
|
||||||
# Allows adding, removing, and restarting tenants without downtime for others
|
# Allows adding, removing, and restarting tenants without downtime for others
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user