From 3d8c11fcbe93889bdb13f1cc5884f899aae7913e Mon Sep 17 00:00:00 2001 From: "Horst H. von Brand" Date: Tue, 6 Apr 2021 15:25:06 -0400 Subject: [PATCH] With SELinux, you have to append `:z` to volumes --- tools/docker/compose.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/docker/compose.md b/tools/docker/compose.md index 92ab79b0..a708c8c1 100644 --- a/tools/docker/compose.md +++ b/tools/docker/compose.md @@ -79,13 +79,12 @@ web: ports: - "8000:8000" volumes: - - ./awesome_web:/code links: - db db: image: fedora-postgresql volumes: - - ./db:/var/lib/pgsql/data + - ./db:/var/lib/pgsql/data:z environment: - POSTGRESQL_DATABASE=awesome_web - POSTGRESQL_USER=awesome_web_user