Skip to content

Commit 2059136

Browse files
committed
Add SELinux Z flag to docker bind
The 'Z' option tells Docker to label the content with a private unshared label. This fixes running healtcheck-and-setup on SELinux distros (RedHat, Fedora, CentOS). Without the flag, SELinux prevents any access to the file.
1 parent 32e9fe2 commit 2059136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- config-ce:/etc/gitlab
1717
- logs-ce:/var/log/gitlab
1818
- data-ce:/var/opt/gitlab
19-
- ${PWD}/scripts/healthcheck-and-setup.sh:/healthcheck-and-setup.sh
19+
- ${PWD}/scripts/healthcheck-and-setup.sh:/healthcheck-and-setup.sh:Z
2020
healthcheck:
2121
test: /healthcheck-and-setup.sh
2222
interval: 10s

0 commit comments

Comments
 (0)