Skip to content

Commit 5ffe80f

Browse files
authored
Merge pull request #260 from RocketChat/deprecate-compose
Deprecate local Docker Compose setup
2 parents 9006d70 + 544f2d1 commit 5ffe80f

File tree

5 files changed

+6
-30
lines changed

5 files changed

+6
-30
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
env:
8686
IMAGE: rocket.chat
8787
RELEASE: ${{ matrix.version }}
88+
DEPRECATED_COMPOSE_ACK: "true"
8889
run: docker compose up -d
8990

9091
- name: Wait for Rocket.Chat to start up

README.md

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,11 @@ Rocket.Chat is a Web Chat Server, developed in JavaScript, using the Meteor full
44

55
It is a great solution for communities and companies wanting to privately host their own chat service or for developers looking forward to build and evolve their own chat platforms.
66

7-
%%LOGO%%
7+
![Rocket.Chat Logo](./images/horizontal.png)
88

99
# How to use this image
1010
### Docker Compose
11-
If you need both the mongo and Rocket.Chat containers, use a docker compose one-liner:
1211

13-
docker compose up -d
12+
This docker compose is deprecated, for update please refer to https://docs.rocket.chat/docs/deploy-with-docker-docker-compose or https://github.com/RocketChat/rocketchat-compose
1413

15-
Which will run both containers, with Rocket.Chat listening on http://localhost:3000
16-
Then, access it via `http://localhost:3000` in a browser. Replace `localhost` in `ROOT_URL` with your own domain name if you are hosting at your own domain.
17-
18-
Stop the containers with:
19-
20-
docker compose down
21-
22-
### Individual containers
23-
First, start an instance of mongo:
24-
25-
docker run --name db -d mongo:4.0 mongod --smallfiles
26-
27-
Then start Rocket.Chat linked to this mongo instance:
28-
29-
docker run --name rocketchat --link db:db -d rocket.chat
30-
31-
This will start a Rocket.Chat instance listening on the default Meteor port of 3000 on the container.
32-
33-
If you'd like to be able to access the instance directly at standard port on the host machine:
34-
35-
docker run --name rocketchat -p 80:3000 --env ROOT_URL=http://localhost --link db:db -d rocket.chat
36-
37-
Then, access it via `http://localhost` in a browser. Replace `localhost` in `ROOT_URL` with your own domain name if you are hosting at your own domain.
38-
39-
If you're using a third party Mongo provider, or working with Kubernetes, you need to override the `MONGO_URL` environment variable:
40-
41-
docker run --name rocketchat -p 80:3000 --env ROOT_URL=http://localhost --env MONGO_URL=mongodb://mymongourl/mydb -d rocket.chat
4214

compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
traefik.http.routers.rocketchat.tls: "true"
1212
traefik.http.routers.rocketchat.entrypoints: https
1313
traefik.http.routers.rocketchat.tls.certresolver: le
14+
DEPRECATED_COMPOSE: "${DEPRECATED_COMPOSE_ACK:?This compose file is deprecated, please migrate to https://github.com/RocketChat/rocketchat-compose}"
1415
environment:
1516
MONGO_URL: mongodb://mongodb:27017/rocketchat?replicaSet=rs0
1617
ROOT_URL: ${ROOT_URL:-http://localhost:3000}

images/horizontal.png

56.3 KB
Loading

traefik.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ services:
77
traefik:
88
image: docker.io/traefik:${TRAEFIK_RELEASE:-v2.9.8}
99
restart: always
10+
labels:
11+
DEPRECATED_COMPOSE: "${DEPRECATED_COMPOSE_ACK:?This compose file is deprecated, please migrate to https://github.com/RocketChat/rocketchat-compose}"
1012
command:
1113
- --api.insecure=false
1214
- --providers.docker=true

0 commit comments

Comments
 (0)