Skip to content

Commit 1391a75

Browse files
committed
Remove the chown docker-compose service #230
Signed-off-by: tdruez <[email protected]>
1 parent b144b89 commit 1391a75

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

docker-compose.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,6 @@ services:
2323
- redis_data:/data
2424
restart: always
2525

26-
# This service is responsible for ensuring the correct ownership of files
27-
# in the shared volumes used by the application (static and media).
28-
# It ensures that all files inside the `/var/dejacode/` directory are owned
29-
# by the user and group with the UID and GID defined in the environment variables
30-
# APP_UID and APP_GID, which default to 1000 if not set.
31-
#
32-
# The service runs only once (due to "restart: no") and performs a `chown` operation
33-
# to change the ownership of the static and media directories, ensuring proper
34-
# file access rights for the running application containers.
35-
#
36-
# Volumes mounted:
37-
# - static: Ensures the ownership of static files in the /var/dejacode/static directory
38-
# - media: Ensures the ownership of media files in the /var/dejacode/media directory
39-
#
40-
# Notes: This service can be removed once DejaCode 5.3.0 will be released.
41-
chown:
42-
image: alpine:latest
43-
restart: "no"
44-
command: chown -R ${APP_UID:-1000}:${APP_GID:-1000} /var/dejacode/
45-
env_file:
46-
- docker.env
47-
volumes:
48-
- static:/var/dejacode/static
49-
- media:/var/dejacode/media
50-
5126
web:
5227
build: .
5328
command: sh -c "

0 commit comments

Comments
 (0)