mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-02-24 00:48:43 +00:00
Compare commits
4 Commits
a2ae0fd5c0
...
945e3a95cb
Author | SHA1 | Date | |
---|---|---|---|
|
945e3a95cb | ||
|
2733943215 | ||
|
f4ba2ed8af | ||
|
3627f0d091 |
@ -1,3 +1,20 @@
|
|||||||
# References
|
# References
|
||||||
|
|
||||||
- https://github.com/RocketChat/Docker.Official.Image
|
- https://github.com/RocketChat/Docker.Official.Image
|
||||||
|
|
||||||
|
# Notes
|
||||||
|
|
||||||
|
The mongodb container will likely throw a permission error when being started for the first time.
|
||||||
|
|
||||||
|
````
|
||||||
|
error: 'An error occurred when creating an index for collection "users: getaddrinfo EAI_AGAIN mongodb',
|
||||||
|
reason: undefined,
|
||||||
|
details: undefined,
|
||||||
|
errorType: 'Meteor.Error'
|
||||||
|
````
|
||||||
|
|
||||||
|
Therefore, you have to adjust the permissions of the mongodb volume path. For example with the following command:
|
||||||
|
|
||||||
|
````
|
||||||
|
sudo chmod -R 777 /mnt/docker-volumes/rocketchat
|
||||||
|
````
|
||||||
|
@ -17,6 +17,8 @@ services:
|
|||||||
# - traefik.http.routers.rocketchat.middlewares=local-ipwhitelist@file
|
# - traefik.http.routers.rocketchat.middlewares=local-ipwhitelist@file
|
||||||
#networks:
|
#networks:
|
||||||
# - proxy
|
# - proxy
|
||||||
|
volumes:
|
||||||
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/rocketchat/uploads:/app/uploads # only use if you enable filesystem upload in the admin area; see https://docs.rocket.chat/use-rocket.chat/workspace-administration/settings/file-upload#storage-type
|
||||||
environment:
|
environment:
|
||||||
MONGO_URL: "${MONGO_URL:-\
|
MONGO_URL: "${MONGO_URL:-\
|
||||||
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
|
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user