Skip to content

Commit

Permalink
fixed volumes in docker-compose.yaml to cope with SELinux as suggeste…
Browse files Browse the repository at this point in the history
…d in docker-library/postgres#116 (comment) . This is the simpler way for docker >1.7, otherwise we would have to tweek with the chcon command.
  • Loading branch information
Martin Vlach committed Jan 22, 2019
1 parent c71082f commit 809c2ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- DB_NAME=gitlabhq_production
- DB_EXTENSION=pg_trgm
volumes:
- /srv/docker/gitlab/postgresql:/var/lib/postgresql
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:z

gitlab:
restart: "no"
Expand Down Expand Up @@ -80,13 +80,13 @@ services:
- IMAP_SSL=true
- IMAP_STARTTLS=false
volumes:
- /srv/docker/gitlab/gitlab:/home/git/data
- /srv/docker/gitlab/gitlab:/home/git/data:z

redis:
restart: "no"
image: sameersbn/redis:latest
volumes:
- /srv/docker/gitlab/redis:/var/lib/redis
- /srv/docker/gitlab/redis:/var/lib/redis:z

jenkins:
restart: "no"
Expand All @@ -95,4 +95,5 @@ services:
- "8080:8080"
- "50000:50000"
volumes:
- /srv/docker/jenkins:/var/jenkins_home
- /srv/docker/jenkins:/var/jenkins_home:z

0 comments on commit 809c2ec

Please sign in to comment.