-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-compose.yml
40 lines (40 loc) · 1.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
version: "3"
services:
threads:
image: textile/go-threads:latest
restart: always
volumes:
- "${THRDS_REPO}/threaddb:/data/threaddb"
environment:
- THRDS_REPO
- THRDS_HOSTADDR
- THRDS_APIADDR=/ip4/0.0.0.0/tcp/6006
- THRDS_APIPROXYADDR=/ip4/0.0.0.0/tcp/6007
- THRDS_CONNLOWWATER
- THRDS_CONNHIGHWATER
- THRDS_CONNGRACEPERIOD
- THRDS_KEEPALIVEINTERVAL
- THRDS_ENABLENETPUBSUB
- THRDS_MONGOURI=mongodb://mongo:27017
- THRDS_MONGODATABASE=threaddb
- THRDS_DEBUG
ports:
- "4006:4006"
- "127.0.0.1:6006:6006"
- "127.0.0.1:6007:6007"
depends_on:
- mongo
mongo:
image: mongo:latest
restart: always
volumes:
- "${THRDS_REPO}/mongodb:/data/mongodb"
ports:
- "127.0.0.1:27017:27017"
command:
- /bin/bash
- -c
- |
/usr/bin/mongod --fork --logpath /var/log/mongod.log --bind_ip_all --replSet rs0
mongo --eval 'rs.initiate({_id: "rs0", version: 1, members: [{ _id: 0, host: "mongo:27017" }]})'
tail -f /var/log/mongod.log