Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error about docker-compose deploying Redis services #2219

Closed
ai30328348 opened this issue May 17, 2024 · 1 comment
Closed

Error about docker-compose deploying Redis services #2219

ai30328348 opened this issue May 17, 2024 · 1 comment
Labels
rootless Running in Docker w/o root

Comments

@ai30328348
Copy link

ai30328348 commented May 17, 2024

I don't want to use root to run nextcloud, so I've found out if
' - REDIS_HOST=redis configured
- REDIS_HOST_PORT=6379', nextcloud will not start due to permission issues, when this configuration is removed, this problem will not occur after manually setting the Redis configuration for NextCloud. I think it's a bug

### This is my docker-compose.yml
`
version: '2'

volumes:
nextcloud:
redis:
services:
redis:
image: redis
networks:
- my_net

app:
image: nextcloud
user: "1000:1000"
restart: always
ports:
- 8080:80
volumes:
- /config/nextcloud:/var/www/html
- /mnt/:/mnt
environment:
- MYSQL_PASSWORD=root
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=mariadb
- REDIS_HOST=redis
- REDIS_HOST_PORT=6379
#- REDIS_HOST_PASSWORD=
- APACHE_BODY_LIMIT=0
networks:
- my_net

networks:
my_net:
external: true`

When I run, it shows
redis | 1:M 17 May 2024 06:39:56.106 * Ready to accept connections tcp
app-1 | Configuring Redis as session handler
app-1 | /entrypoint.sh: 111: cannot create /usr/local/etc/php/conf.d/redis-session.ini: Permission denied
app-1 exited with code 0
app-1 exited with code 2
app-1 | Configuring Redis as session handler
app-1 | /entrypoint.sh: 111: cannot create /usr/local/etc/php/conf.d/redis-session.ini: Permission denied
app-1 | Configuring Redis as session handler
app-1 | /entrypoint.sh: 111: cannot create /usr/local/etc/php/conf.d/redis-session.ini: Permission denied
app-1 | Configuring Redis as session handler

@ai30328348 ai30328348 changed the title About Redis Service Deployment Error about docker-compose deploying Redis services May 17, 2024
@joshtrichards
Copy link
Member

Duplicate of #763

@joshtrichards joshtrichards marked this as a duplicate of #763 May 17, 2024
@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
@joshtrichards joshtrichards added the rootless Running in Docker w/o root label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rootless Running in Docker w/o root
Projects
None yet
Development

No branches or pull requests

2 participants