2023-02-19 05:01:08 +00:00
version : "3.7"
services :
rocketchat :
container_name : rocketchat
hostname : rocketchat
image : registry.rocket.chat/rocketchat/rocket.chat:latest
restart : unless-stopped
2024-06-05 08:36:16 +00:00
expose :
- 3000
2023-02-19 05:01:08 +00:00
ports :
2024-06-05 08:36:16 +00:00
- 3000 : 3000 # web ui
2023-02-19 05:01:08 +00:00
#labels:
# - traefik.enable=true
# - traefik.http.routers.rocketchat.rule=Host(`chat.example.com`) # pls change
# - traefik.http.services.rocketchat.loadbalancer.server.port=3000
# - traefik.docker.network=proxy
# # Part for local lan services only; disable to expose externally
# - traefik.http.routers.rocketchat.middlewares=local-ipwhitelist@file
2023-04-02 15:11:37 +00:00
#networks:
# - proxy
2023-04-02 15:53:31 +00:00
volumes :
2023-04-02 16:11:33 +00:00
- ${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
2023-02-19 05:01:08 +00:00
environment :
MONGO_URL : "${MONGO_URL:-\
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
${MONGODB_DATABASE:-rocketchat}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
MONGO_OPLOG_URL : "${MONGO_OPLOG_URL:\
-mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}>
local?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
ROOT_URL : ${ROOT_URL:-http://localhost:${HOST_PORT:-3000}}
PORT : ${PORT:-3000}
DEPLOY_METHOD : docker
2023-02-26 17:46:47 +00:00
DEPLOY_PLATFORM : ${DEPLOY_PLATFORM:-linux}
2023-02-19 05:01:08 +00:00
depends_on :
- mongodb
mongodb :
container_name : rocketchat-db
hostname : rocketchat-db
image : docker.io/bitnami/mongodb:${MONGODB_VERSION:-4.4}
restart : unless-stopped
volumes :
2023-02-25 13:09:52 +00:00
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/rocketchat/mongodb:/bitnami/mongodb
2023-02-19 05:01:08 +00:00
environment :
MONGODB_REPLICA_SET_MODE : primary
MONGODB_REPLICA_SET_NAME : ${MONGODB_REPLICA_SET_NAME:-rs0}
MONGODB_PORT_NUMBER : ${MONGODB_PORT_NUMBER:-27017}
MONGODB_INITIAL_PRIMARY_HOST : ${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
MONGODB_INITIAL_PRIMARY_PORT_NUMBER : ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
MONGODB_ADVERTISED_HOSTNAME : ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
MONGODB_ENABLE_JOURNAL : ${MONGODB_ENABLE_JOURNAL:-true}
ALLOW_EMPTY_PASSWORD : ${ALLOW_EMPTY_PASSWORD:-yes}
2023-04-02 15:11:37 +00:00
#networks:
# - proxy
#networks:
# proxy:
# external: true