2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 22:39:25 +01:00

add jenkins/inbound-agent

This commit is contained in:
kev
2020-09-23 15:54:24 +08:00
parent a7876949a1
commit 92bb37687b
6 changed files with 108 additions and 17 deletions

View File

@@ -5,4 +5,15 @@ Rocket.Chat
[Rocket.Chat][1] is a Web Chat Server, developed in JavaScript, using the Meteor fullstack framework.
## up and running
```bash
$ docker-compose up -d mongo
$ docker-compose exec mongo mongo
>>> rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27017'}]})
>>> exit
$ docker-compose up -d rocketchat
$ curl http://127.0.0.1:3000
```
[1]: https://rocket.chat/

View File

@@ -1,17 +1,28 @@
rocketchat:
image: rocket.chat
ports:
- "3000:3000"
links:
- mongo:db
environment:
- ROOT_URL=http://chat.easypi.pro
restart: always
#
# https://github.com/RocketChat/Rocket.Chat/blob/develop/docker-compose.yml
#
mongo:
image: mongo
ports:
- "27017:27017"
volumes:
- ./data:/data/db
restart: always
version: "3.8"
services:
rocketchat:
image: rocketchat/rocket.chat:3.6.1
ports:
- "3000:3000"
environment:
- ROOT_URL=https://chat.easypi.pro
- MONGO_URL=mongodb://mongo:27017/rocketchat
- MONGO_OPLOG_URL=mongodb://mongo:27017/local
depends_on:
- mongo
restart: unless-stopped
mongo:
image: mongo:4
command: mongod --oplogSize 128 --replSet rs0
ports:
- "27017:27017"
volumes:
- ./data/db:/data/db
restart: unless-stopped

29
rocketchat/nginx.conf Normal file
View File

@@ -0,0 +1,29 @@
server {
listen 80;
server_name chat.easypi.pro;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name chat.easypi.pro;
ssl_certificate easypi.pro.crt;
ssl_certificate_key easypi.pro.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
client_max_body_size 200M;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
}
}