diff options
author | J0WI <J0WI@users.noreply.github.com> | 2023-03-28 16:05:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 16:05:53 +0000 |
commit | 3eb80c52b129b4fbe8bd041fd0ba3ee0262e823a (patch) | |
tree | fbeed28cedb69c1fdfe9602c64063c31fdc9560a /.examples/docker-compose/insecure | |
parent | 30bb621341a08526481b734886cc3922213e5f15 (diff) |
Support SELinux in docker-compose.yml examples (fix #324) (#1957)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to '.examples/docker-compose/insecure')
4 files changed, 14 insertions, 14 deletions
diff --git a/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml b/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml index 61ea1fc9..11ff5bf9 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 1b527b9e..e293a92c 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 882f161e..0a48bd05 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 85fecdf1..97343ad9 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 |