Skip to content

Commit

Permalink
Fix docker mount permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimusCrime committed Nov 15, 2017
1 parent 03956f4 commit 88c73a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.server
Expand Up @@ -26,6 +26,10 @@ RUN chmod 0644 /etc/cron.d/youkok2_cron
# Install PHP extensions
RUN docker-php-ext-install zip pdo pdo_mysql


RUN usermod -u 1000 www-data
RUN groupmod -g 1000 www-data

# https://stackoverflow.com/a/38567344
ENV PHPREDIS_VERSION 3.1.4

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Expand Up @@ -13,8 +13,8 @@ services:
user: "1000"
network_mode: "none"
volumes:
- ./youkok2:/var/www/html
- ./docker/files:/var/www/files
- ./youkok2:/var/www/html:z
- ./docker/files:/var/www/files:z
- ./docker/cache:/var/www/cache

###############################################
Expand Down Expand Up @@ -68,4 +68,4 @@ services:
- db
- cache
volumes_from:
- appdata
- appdata

0 comments on commit 88c73a9

Please sign in to comment.