Compose-Examples/examples/rocketchat/docker-compose.yml

59 lines
2.4 KiB
YAML
Raw Normal View History

2023-02-19 05:01:08 +00:00
services:
2023-02-19 05:01:08 +00:00
rocketchat:
image: registry.rocket.chat/rocketchat/rocket.chat:latest
2023-02-19 05:01:08 +00:00
container_name: rocketchat
hostname: rocketchat
restart: unless-stopped
expose:
- 3000
2023-02-19 05:01:08 +00:00
ports:
- 3000:3000 # web ui
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
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
DEPLOY_PLATFORM: ${DEPLOY_PLATFORM:-linux}
2023-02-19 05:01:08 +00:00
depends_on:
- mongodb
#networks:
# - proxy
#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-02-19 05:01:08 +00:00
mongodb:
image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-4.4}
2023-02-19 05:01:08 +00:00
container_name: rocketchat-db
hostname: rocketchat-db
restart: unless-stopped
volumes:
- ${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}
#networks:
# - proxy
#networks:
# proxy:
# external: true