diff --git a/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml b/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml index 61ea1fc91a5985af8d047b30bdd91370775b313b..11ff5bf9fdeb6f3cbccb7eccfced05f9d85795f5 100644 --- a/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml @@ -6,7 +6,7 @@ services: command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW restart: always volumes: - - db:/var/lib/mysql + - db:/var/lib/mysql:Z environment: - MYSQL_ROOT_PASSWORD= - MARIADB_AUTO_UPGRADE=1 @@ -24,7 +24,7 @@ services: ports: - 127.0.0.1:8080:80 volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z environment: - MYSQL_HOST=db - REDIS_HOST=redis @@ -38,7 +38,7 @@ services: image: nextcloud:apache restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - db diff --git a/.examples/docker-compose/insecure/mariadb/fpm/docker-compose.yml b/.examples/docker-compose/insecure/mariadb/fpm/docker-compose.yml index 1b527b9ebf21d0842129c2b2acb3881ced5c0844..e293a92c3b24e8395dab3e96cfacee7230114350 100644 --- a/.examples/docker-compose/insecure/mariadb/fpm/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb/fpm/docker-compose.yml @@ -6,7 +6,7 @@ services: command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW restart: always volumes: - - db:/var/lib/mysql + - db:/var/lib/mysql:Z environment: - MYSQL_ROOT_PASSWORD= - MARIADB_AUTO_UPGRADE=1 @@ -22,7 +22,7 @@ services: image: nextcloud:fpm-alpine restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z environment: - MYSQL_HOST=db - REDIS_HOST=redis @@ -38,7 +38,7 @@ services: ports: - 127.0.0.1:8080:80 volumes: - - nextcloud:/var/www/html:ro + - nextcloud:/var/www/html:z,ro depends_on: - app @@ -46,7 +46,7 @@ services: image: nextcloud:fpm-alpine restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - db diff --git a/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml b/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml index 882f161e042fc335dd2ae76cdd7c75259dad5958..0a48bd053a064c8562ca058c30736d9f5d93917a 100644 --- a/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml +++ b/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml @@ -5,7 +5,7 @@ services: image: postgres:alpine restart: always volumes: - - db:/var/lib/postgresql/data + - db:/var/lib/postgresql/data:Z env_file: - db.env @@ -19,7 +19,7 @@ services: ports: - 127.0.0.1:8080:80 volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z environment: - POSTGRES_HOST=db - REDIS_HOST=redis @@ -33,7 +33,7 @@ services: image: nextcloud:apache restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - db diff --git a/.examples/docker-compose/insecure/postgres/fpm/docker-compose.yml b/.examples/docker-compose/insecure/postgres/fpm/docker-compose.yml index 85fecdf1026983177a8c378384fef2d0d2d56ec5..97343ad93c93ef2c3594bb44120248ae6805a8f6 100644 --- a/.examples/docker-compose/insecure/postgres/fpm/docker-compose.yml +++ b/.examples/docker-compose/insecure/postgres/fpm/docker-compose.yml @@ -5,7 +5,7 @@ services: image: postgres:alpine restart: always volumes: - - db:/var/lib/postgresql/data + - db:/var/lib/postgresql/data:z env_file: - db.env @@ -17,7 +17,7 @@ services: image: nextcloud:fpm-alpine restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z environment: - POSTGRES_HOST=db - REDIS_HOST=redis @@ -33,7 +33,7 @@ services: ports: - 127.0.0.1:8080:80 volumes: - - nextcloud:/var/www/html:ro + - nextcloud:/var/www/html:z,ro depends_on: - app @@ -41,7 +41,7 @@ services: image: nextcloud:fpm-alpine restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - db diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/docker-compose.yml b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/docker-compose.yml index 4cf50d6097b8e6b6637724280a02f4d6d15adf99..b88a35947819010b65c188b5c6632cbae11f081e 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/docker-compose.yml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/docker-compose.yml @@ -6,7 +6,7 @@ services: command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW restart: always volumes: - - db:/var/lib/mysql + - db:/var/lib/mysql:Z environment: - MYSQL_ROOT_PASSWORD= - MARIADB_AUTO_UPGRADE=1 @@ -22,7 +22,7 @@ services: image: nextcloud:apache restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z environment: - VIRTUAL_HOST= - LETSENCRYPT_HOST= @@ -42,7 +42,7 @@ services: image: nextcloud:apache restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - db @@ -57,10 +57,10 @@ services: labels: com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" volumes: - - certs:/etc/nginx/certs:ro - - vhost.d:/etc/nginx/vhost.d - - html:/usr/share/nginx/html - - /var/run/docker.sock:/tmp/docker.sock:ro + - certs:/etc/nginx/certs:z,ro + - vhost.d:/etc/nginx/vhost.d:z + - html:/usr/share/nginx/html:z + - /var/run/docker.sock:/tmp/docker.sock:z,ro networks: - proxy-tier @@ -68,11 +68,11 @@ services: image: nginxproxy/acme-companion restart: always volumes: - - certs:/etc/nginx/certs - - acme:/etc/acme.sh - - vhost.d:/etc/nginx/vhost.d - - html:/usr/share/nginx/html - - /var/run/docker.sock:/var/run/docker.sock:ro + - certs:/etc/nginx/certs:z + - acme:/etc/acme.sh:z + - vhost.d:/etc/nginx/vhost.d:z + - html:/usr/share/nginx/html:z + - /var/run/docker.sock:/var/run/docker.sock:z,ro networks: - proxy-tier depends_on: diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/docker-compose.yml b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/docker-compose.yml index 9667b5fe8b6458ad222814326e2548d3aca458e1..94196e9f9067973133e5a8347d409d66adb51d9f 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/docker-compose.yml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/docker-compose.yml @@ -6,7 +6,7 @@ services: command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW restart: always volumes: - - db:/var/lib/mysql + - db:/var/lib/mysql:Z environment: - MYSQL_ROOT_PASSWORD= - MARIADB_AUTO_UPGRADE=1 @@ -22,7 +22,7 @@ services: image: nextcloud:fpm-alpine restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z environment: - MYSQL_HOST=db - REDIS_HOST=redis @@ -36,7 +36,7 @@ services: build: ./web restart: always volumes: - - nextcloud:/var/www/html:ro + - nextcloud:/var/www/html:z,ro environment: - VIRTUAL_HOST= - LETSENCRYPT_HOST= @@ -51,7 +51,7 @@ services: image: nextcloud:fpm-alpine restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - db @@ -66,10 +66,10 @@ services: labels: com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" volumes: - - certs:/etc/nginx/certs:ro - - vhost.d:/etc/nginx/vhost.d - - html:/usr/share/nginx/html - - /var/run/docker.sock:/tmp/docker.sock:ro + - certs:/etc/nginx/certs:z,ro + - vhost.d:/etc/nginx/vhost.d:z + - html:/usr/share/nginx/html:z + - /var/run/docker.sock:/tmp/docker.sock:z,ro networks: - proxy-tier @@ -77,11 +77,11 @@ services: image: nginxproxy/acme-companion restart: always volumes: - - certs:/etc/nginx/certs - - acme:/etc/acme.sh - - vhost.d:/etc/nginx/vhost.d - - html:/usr/share/nginx/html - - /var/run/docker.sock:/var/run/docker.sock:ro + - certs:/etc/nginx/certs:z + - acme:/etc/acme.sh:z + - vhost.d:/etc/nginx/vhost.d:z + - html:/usr/share/nginx/html:z + - /var/run/docker.sock:/var/run/docker.sock:z,ro networks: - proxy-tier depends_on: diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml b/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml index 11b99c5eb75a94c779c3259b38aafe7764179dd4..243e06cf832ae5a12da543ba9a44e371a101e4c8 100644 --- a/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml +++ b/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml @@ -5,7 +5,7 @@ services: image: postgres:alpine restart: always volumes: - - db:/var/lib/postgresql/data + - db:/var/lib/postgresql/data:Z env_file: - db.env @@ -17,7 +17,7 @@ services: image: nextcloud:apache restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z environment: - VIRTUAL_HOST= - LETSENCRYPT_HOST= @@ -37,7 +37,7 @@ services: image: nextcloud:apache restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - db @@ -52,10 +52,10 @@ services: labels: com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" volumes: - - certs:/etc/nginx/certs:ro - - vhost.d:/etc/nginx/vhost.d - - html:/usr/share/nginx/html - - /var/run/docker.sock:/tmp/docker.sock:ro + - certs:/etc/nginx/certs:z,ro + - vhost.d:/etc/nginx/vhost.d:z + - html:/usr/share/nginx/html:z + - /var/run/docker.sock:/tmp/docker.sock:z,ro networks: - proxy-tier @@ -63,11 +63,11 @@ services: image: nginxproxy/acme-companion restart: always volumes: - - certs:/etc/nginx/certs - - acme:/etc/acme.sh - - vhost.d:/etc/nginx/vhost.d - - html:/usr/share/nginx/html - - /var/run/docker.sock:/var/run/docker.sock:ro + - certs:/etc/nginx/certs:z + - acme:/etc/acme.sh:z + - vhost.d:/etc/nginx/vhost.d:z + - html:/usr/share/nginx/html:z + - /var/run/docker.sock:/var/run/docker.sock:z,ro networks: - proxy-tier depends_on: diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/docker-compose.yml b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/docker-compose.yml index 6e411741d1a3c58903c918b41ce2663a30586df3..008d74afb359215e1319914737fcb8583ffcac0e 100644 --- a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/docker-compose.yml +++ b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/docker-compose.yml @@ -5,7 +5,7 @@ services: image: postgres:alpine restart: always volumes: - - db:/var/lib/postgresql/data + - db:/var/lib/postgresql/data:Z env_file: - db.env @@ -17,7 +17,7 @@ services: image: nextcloud:fpm-alpine restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z environment: - POSTGRES_HOST=db - REDIS_HOST=redis @@ -31,7 +31,7 @@ services: build: ./web restart: always volumes: - - nextcloud:/var/www/html:ro + - nextcloud:/var/www/html:z,ro environment: - VIRTUAL_HOST= - LETSENCRYPT_HOST= @@ -46,7 +46,7 @@ services: image: nextcloud:fpm-alpine restart: always volumes: - - nextcloud:/var/www/html + - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - db @@ -61,10 +61,10 @@ services: labels: com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" volumes: - - certs:/etc/nginx/certs:ro - - vhost.d:/etc/nginx/vhost.d - - html:/usr/share/nginx/html - - /var/run/docker.sock:/tmp/docker.sock:ro + - certs:/etc/nginx/certs:z,ro + - vhost.d:/etc/nginx/vhost.d:z + - html:/usr/share/nginx/html:z + - /var/run/docker.sock:/tmp/docker.sock:z,ro networks: - proxy-tier @@ -72,11 +72,11 @@ services: image: nginxproxy/acme-companion restart: always volumes: - - certs:/etc/nginx/certs - - acme:/etc/acme.sh - - vhost.d:/etc/nginx/vhost.d - - html:/usr/share/nginx/html - - /var/run/docker.sock:/var/run/docker.sock:ro + - certs:/etc/nginx/certs:z + - acme:/etc/acme.sh:z + - vhost.d:/etc/nginx/vhost.d:z + - html:/usr/share/nginx/html:z + - /var/run/docker.sock:/var/run/docker.sock:z,ro networks: - proxy-tier depends_on: