mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
refactor(docker-compose): Set UID/GID (#1044)
* Adding UID, GID to prevent permission problems when running docker compose as user and not as root. * Update docker_install.md Add comment on pre-creating volume mount directories. --------- Co-authored-by: Erich Focht <efocht@gmail.com> Co-authored-by: Erich Focht <efocht@users.noreply.github.com>
This commit is contained in:
parent
909cbb8529
commit
e7e473d335
3 changed files with 13 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ services:
|
|||
target: node # ^------v
|
||||
# image: ghcr.io/danny-avila/librechat:latest # Uncomment this & comment above to build from docker hub image
|
||||
restart: always
|
||||
user: "${UID}:${GID}"
|
||||
extra_hosts: # if you are running APIs on docker you need access to, you will need to uncomment this line and next
|
||||
- "host.docker.internal:host-gateway"
|
||||
env_file:
|
||||
|
|
@ -50,6 +51,7 @@ services:
|
|||
# - 27018:27017
|
||||
image: mongo
|
||||
restart: always
|
||||
user: "${UID}:${GID}"
|
||||
volumes:
|
||||
- ./data-node:/data/db
|
||||
command: mongod --noauth
|
||||
|
|
@ -61,6 +63,7 @@ services:
|
|||
# - 7700:7700 # if exposing these ports, make sure your master key is not the default value
|
||||
env_file:
|
||||
- .env
|
||||
user: "${UID}:${GID}"
|
||||
environment:
|
||||
- MEILI_HOST=http://meilisearch:7700
|
||||
- MEILI_HTTP_ADDR=meilisearch:7700
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue