forked from linux/WebHosting
ccf2ef856ddce17bc4dde9c1aa2392b8a095d26a
WebHosting
Shared web applications behind Nginx/Apache, deployed in /opt/WebHosting.
docker-compose.yamlcombinesstacks/<app>/compose.yamlinto one Compose project. Run commands from the repository root; relative paths resolve from there.- Only Nginx publishes host ports (
80/443) and joinspublicandbackend. Web applications sharebackend; databases use their separate application networks. These are bridge networks with outbound access, withoutinternal: true. - Puppet manages secrets through
hiera/data-lx/default/lx-docker-01.psi.ch.yaml. The service env files live under/etc/webhosting/, separately from this repo. - Env files are root-owned (
0600, directories0700) and useformat: raw: keep values literal, without adding quotes or escaping dollar signs.
Puppet must provision all required env files before Compose validation or deployment.
Use config --quiet to avoid printing secrets. After an update, check the application;
if its container IP changed, validate and reload Nginx using the host's deployment procedure.
Languages
Nginx
100%