-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
80 lines (74 loc) · 2.08 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
version: '2'
services:
rocketchat:
image: rocketchat/rocket.chat:latest
restart: unless-stopped
hostname: rocketchat
volumes:
- ./uploads:/app/uploads
environment:
- PORT=3000
- ROOT_URL=http://localhost:3000
- MONGO_URL=mongodb://mongo:27017/rocketchat
- MONGO_OPLOG_URL=mongodb://mongo:27017/local
- MAIL_URL=smtp://smtp.email
depends_on:
- mongo
ports:
- 3000:3000
labels:
- "traefik.backend=rocketchat"
- "traefik.frontend.rule=Host: your.domain.tld"
mongo:
image: mongo:3.2
restart: unless-stopped
volumes:
- ./data/db:/data/db
command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
labels:
- "traefik.enable=false"
mongo-init-replica:
image: mongo:3.2
command: 'mongo mongo/rocketchat --eval "rs.initiate({ _id: ''rs0'', members: [ { _id: 0, host: ''localhost:27017'' } ]})"'
depends_on:
- mongo
jenkins:
build:
context: jenkins/
hostname: jenkins
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:8080
- 50000:50000
consul:
container_name: consul.server
restart: unless-stopped
hostname: consul
command: agent -server -bind 0.0.0.0 -client 0.0.0.0 -bootstrap-expect=1
image: consul:1.1.0
volumes:
- ./etc/consul.server/config:/consul/config
ports:
- "9300:9300"
- "9500:9500"
- "9600:9600/udp"
vault:
container_name: vault.server
restart: unless-stopped
hostname: vault
image: vault:0.10.0
ports:
- "9200:8200"
volumes:
- ./etc/vault.server/config:/mnt/vault/config
- ./etc/vault.server/data:/mnt/vault/data
- ./etc/vault.server/logs:/mnt/vault/logs
cap_add:
- IPC_LOCK
environment:
- VAULT_LOCAL_CONFIG={"backend":{"consul":{"address":"consul:8500","advertise_addr":"http://consul", "path":"vault/"}},"listener":{"tcp":{"address":"0.0.0.0:8200","tls_disable":1}}}
- VAULT_ADDR=http://127.0.0.1:8200
command: server