Skip to content

Commit

Permalink
docs: add developer notes about rootless docker setup (immich-app#13250)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Rudolf authored and yosit committed Dec 20, 2024
1 parent 69499b2 commit 57e54d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ services:
immich-web:
container_name: immich_web
image: immich-web-dev:latest
# Needed for rootless docker setup, see https://github.com/moby/moby/issues/45919
# user: 0:0
build:
context: ../web
command: ['/usr/src/app/bin/immich-web']
Expand Down
5 changes: 4 additions & 1 deletion docs/docs/developer/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ All the services will be started with hot-reloading enabled for a quick feedback

You can access the web from `http://your-machine-ip:3000` or `http://localhost:3000` and access the server from the mobile app at `http://your-machine-ip:3000/api`

**Note:** the "web" development container runs with uid 1000. If that uid does not have read/write permissions on the mounted volumes, you may encounter errors
**Notes:**

- The "web" development container runs with uid 1000. If that uid does not have read/write permissions on the mounted volumes, you may encounter errors
- In case of rootless docker setup, you need to use root within the container, otherwise you will encounter read/write permission related errors, see comments in `docker/docker-compose.dev.yml`.

#### Connect web to a remote backend

Expand Down

0 comments on commit 57e54d3

Please sign in to comment.