generated from spknetwork/js-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (67 loc) · 1.71 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
version: "3.3"
services:
union-indexer-node: # name of the service
build: .
image: union-indexer-node # the image to use
container_name: union-indexer-node # what to label the container for docker ps
ports:
- 4568:4568
restart: always # restart if failed, until we stop it ourselves
links:
- mongo
depends_on:
- mongo
env_file:
- .env
networks:
- union-indexer-network
environment:
MONGO_HOST: mongo:27017
ENABLE_CORS: "true"
SPK_INDEXER_HOST: "https://offchain.us-02.infra.3speak.tv"
hive-events-union:
image: union-indexer-node
restart: always
depends_on:
- union-indexer-node
networks:
- union-indexer-network
command: npm run start-worker:hive-events
environment:
MONGO_HOST: mongo:27017
HIVE_HOST: "https://hive-api.3speak.tv"
hive-events-reindex:
image: union-indexer-node
restart: always
depends_on:
- union-indexer-node
networks:
- union-indexer-network
command: npm run start-worker:hive-events-reindex
environment:
MONGO_HOST: mongo:27017
HIVE_HOST: "https://hive-api.3speak.tv"
background-scripts:
image: union-indexer-node
restart: always
depends_on:
- union-indexer-node
networks:
- union-indexer-network
command: npm run start-worker:background-scripts
environment:
MONGO_HOST: mongo:27017
HIVE_HOST: "https://api.deathwing.me"
mongo:
container_name: mongo_union
image: mongo:latest
restart: always
ports:
- 127.0.0.1:27027:27017
networks:
- union-indexer-network
volumes:
- ./data/mongodb:/data/db
networks:
union-indexer-network:
driver: bridge