-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.46 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3.7"
services:
rocketchat:
image: registry.rocket.chat/rocketchat/rocket.chat:4.8.1
restart: unless-stopped
volumes:
- ./data/uploads:/app/uploads
environment:
MONGO_URL: "mongodb://mongodb:27017/rocketchat?replicaSet=rs0"
MONGO_OPLOG_URL: "mongodb://mongodb:27017/local?replicaSet=rs0"
ROOT_URL: "http://${ROCKETCHAT_HOST}:3000"
PORT: 3000
labels:
traefik.enable: true
traefik.http.routers.rocketchat.rule: Host(`${ROCKETCHAT_HOST}`)
traefik.http.routers.rocketchat.entrypoints: http
depends_on:
- mongodb
mongodb:
image: docker.io/bitnami/mongodb:4.4
restart: unless-stopped
volumes:
- ./data/db:/bitnami/mongodb
environment:
MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_NAME: rs0
MONGODB_PORT_NUMBER: 27017
MONGODB_INITIAL_PRIMARY_HOST: mongodb
MONGODB_INITIAL_PRIMARY_PORT_NUMBER: 7017
MONGODB_ADVERTISED_HOSTNAME: mongodb
MONGODB_ENABLE_JOURNAL: true
ALLOW_EMPTY_PASSWORD: yes
traefik:
image: docker.io/traefik:v2.6.1
restart: unless-stopped
command:
- --api.insecure=false
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.http.address=:${ROCKETCHAT_PORT}
ports:
- ${ROCKETCHAT_PORT}:3000
- ${TRAEFIK_DASHBOARD_PORT}:8080
volumes:
- ./data/letsencrypt:/letsencrypt:rw
- ${DOCKER_SOCKET}:/var/run/docker.sock:ro