Skip to content

When specifying a docker user, receive permissions issue #716

Description

@ashtonian

I can't get the nextcloud image to stay up using docker compose when I specify a user for the image to run.

Initializing nextcloud 15.0.7.0 ...,
rsync: mkstemp "/var/www/html/config/.htaccess.ouuZQM" failed: Permission denied (13),
rsync: mkstemp "/var/www/html/config/.apache-pretty-urls.config.php.172yr0" failed: Permission denied (13),
rsync: mkstemp "/var/www/html/config/.apcu.config.php.UCM81d" failed: Permission denied (13),
rsync: mkstemp "/var/www/html/config/.apps.config.php.VfBICr" failed: Permission denied (13),
rsync: mkstemp "/var/www/html/config/.autoconfig.php.stuidF" failed: Permission denied (13),
rsync: mkstemp "/var/www/html/config/.config.sample.php.v6sSNS" failed: Permission denied (13),
rsync: mkstemp "/var/www/html/config/.redis.config.php.gmVto6" failed: Permission denied (13),
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2],
services:
db:
image: mariadblogging: *default-loggingnetworks:
- nextcloudcommand: --transaction-isolation=READ-COMMITTED --binlog-format=ROWvolumes:
- db:/var/lib/mysqlenvironment:
MYSQL_ROOT_PASSWORD: ${NC_DB_ROOT_PASS}MYSQL_PASSWORD: ${NC_DB_PASS}MYSQL_DATABASE: nextcloudMYSQL_USER: nextcloudredis:
image: redislogging: *default-loggingvolumes:
- redis:/datanetworks:
- nextcloudnextcloud:
image: nextcloud:apachelogging: *default-loggingvolumes:
- nextcloud:/var/www/html
- nexctcloud_config:/var/www/html/config
- nexctcloud_custom_apps:/var/www/html/custom_apps
- nextcloud_data:/dataenvironment:
MYSQL_HOST: dbMYSQL_PASSWORD: ${NC_DB_PASS}MYSQL_DATABASE: nextcloudMYSQL_USER: nextcloudNEXTCLOUD_TRUSTED_DOMAINS: REDIS_HOST: redisNEXTCLOUD_DATA_DIR: /datadepends_on:
- db
- redisnetworks:
- nextcloud
- publiclabels:
traefik.enable: "true"traefik.docker.network: "public"traefik.backend: "nextcloud"traefik.frontend.rule: "Host:"traefik.port: "80"traefik.protocol: "http"user: "5001:5001"deploy:
labels:
traefik.enable: "true"traefik.docker.network: "public"traefik.backend: "nextcloud"traefik.frontend.rule: "Host:"traefik.port: "80"traefik.protocol: "http"# traefik.frontend.whiteList.sourceRange: 10.0.0.1/24# traefik.frontend.whiteList.useXForwardedFor: "true"nextcloud-cron:
image: nextcloud:apachelogging: *default-loggingrestart: alwaysnetworks:
- nextcloudvolumes:
- nextcloud:/var/www/html
- nexctcloud_config:/var/www/html/config
- nexctcloud_custom_apps:/var/www/html/custom_appsuser: "5001:5001"entrypoint: /cron.shdepends_on:
- db
- redisdeploy:
networks:
nextcloud:
driver: overlaypublic:
external: truevolumes:
redis:
db:
nextcloud:
nexctcloud_config:
nexctcloud_custom_apps:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions