I followed the setup for single bench for 1 site and it worked, now I have added another site, and here is my .env:
SITE_NAME=erp1.[domain].com
SITES=`erp1.[domain].com,erp2.[domain].com`
NEW
SITE_NAME=erp2.[domain].com
SITES=`erp1.[domain].com,erp2.[domain].com`
I ran docker-compose pull
and up -d
and the logs from site-creator
indicate that the site was created but both sites are giving 404 errors.
Here’s someone who was lucky to install multi tenant setup.
And here it is! Containerized multi-tenant production:
[11%20PM]
[12%20PM]
This took about 50 minutes from start to finish. When I say “start to finish”, I mean exactly that: from when I decided to start trying to when I was completely done. It would have been a lot quicker if I didn’t have to wait for DNS to propagate. Of those 50 minutes, about 10 of them were active. The rest were waiting for things to download.
I loaded up a fresh VPS instance (Ubuntu 20), installed docker and docker-com…
Check traefik dashboard, services, routers, etc. Nothing much I can help.
I can install it on your server if you add my ssh keys.
2 Likes
peterg
August 28, 2021, 1:17am
#3
Just off hand, your sites variable looks wrong. Each site name needs to be wrapped in backticks individually. At the moment, your server is being told you have one site called erp1.[domain].com,erp2.[domain].com
, which of course doesn’t resolve.
# Site operations
Create and use env file to pass environment variables to containers,
```sh
source .env
```
Or specify environment variables instead of passing secrets as command arguments. Refer notes section for environment variables required
## Setup New Site
Note:
- Wait for the database service to start before trying to create a new site.
- If new site creation fails, retry after the MariaDB container is up and running.
- If you're using a managed database instance, make sure that the database is running before setting up a new site.
#### MariaDB Site
This file has been truncated. show original
2 Likes