-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.75 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
mongo:
image: mongo
volumes:
- ./data/runtime/db:/data/db
- ./data/dump:/dump
command: mongod --smallfiles
rocketchat:
image: rocketchat/rocket.chat:latest
# volumes:
# - ./uploads:/app/uploads
environment:
- PORT=3000
- ROOT_URL=https://chat.example.com
- MONGO_URL=mongodb://db:27017/rocketchat
links:
- mongo:db
ports:
- "3000"
nginx:
build: nginx
links:
- letsencrypt
- rocketchat:app_to_proxy
environment:
- MY_DOMAIN_NAME=my.example.com
- LETSENCRYPT_IP=letsencrypt
- LETSENCRYPT_PORT_80=80
- LETSENCRYPT_PORT_443=443
- APPLICATION_IP=app_to_proxy
- APPLICATION_PORT=3000
mem_limit: 2g
cpu_shares: 256
# restart: always
ports:
- "80:80"
- "443:443"
volumes_from:
- letsencrypt
letsencrypt:
image: quay.io/letsencrypt/letsencrypt:latest
command: bash -c "sleep 6 && certbot certonly --standalone -d my.example.com --text --agree-tos --email user@my.example.com --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --verbose --renew-by-default --standalone-supported-challenges http-01"
entrypoint: ""
volumes:
- /etc/letsencrypt
- /var/lib/letsencrypt
ports:
- "80"
- "443"
environment:
- TERM=xterm
# hubot:
# image: rocketchat/hubot-rocketchat
# environment:
# - ROCKETCHAT_URL=rocketchat:3000
# - ROCKETCHAT_ROOM=GENERAL
# - ROCKETCHAT_USER=Botname
# - ROCKETCHAT_PASSWORD=BotPassw0rd
# - BOT_NAME=Botname
# - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-greetings,hubot-diagnostics
# links:
# - rocketchat:rocketchat
# # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
# ports:
# - "3001:8080"