Hello everyone!
I want to limit the space for all my sites to 1GB.
Right now this is not possible with Docker Volumes…
My workaround right now:
- Addional data disk attached to vm
- 1GB partitions on the disk for each site
-
docker-compose.override.yml
to override volumehtdocs
with/var/www
mount to/opt/sites/test.ch/app/
- Manually copy over all the stuff from the default htdocs folder
/opt/easyengine/sites/test.ch/app
to my new/var/www
docker mount at/opt/sites/test.ch/app
docker-compose.override.yml
version: '3.5'
services:
nginx:
volumes:
- "/opt/sites/test.ch/app:/var/www"
So this all works fine, it is just a to much work to do manually.
Writing a scripts to the work would also be possible but I’m too lazy…
Is there some better easyengine buildin way to change the site root folder?
How I think it schould work (but does not):
sudo ee site create test.ch --sites_path=/opt/sites/test.ch
Configuring project.
Creating site test.ch.
Copying configuration files.
Starting site's services.
Success: Configuration files copied.
Host entry already exists.
Checking and verifying site-up status. This may take some time.
+---------------+-------------------------------+
| Site | http://test.ch |
+---------------+-------------------------------+
| Site Root | /opt/easyengine/sites/test.ch |
+---------------+-------------------------------+
| Alias Domains | None |
+---------------+-------------------------------+
| SSL | Not Enabled |
+---------------+-------------------------------+
Site entry created.
Site Root should be /opt/sites/test.ch
but actually is still default /opt/easyengine/sites/test.ch
How does the --sites_path=
command work?
Thanks for all the answers!