forked from BarnBridge/meminero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (99 loc) · 1.94 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3.7'
services:
redis:
container_name: meminero-redis
image: redis:6
restart: always
logging:
options:
max-file: "5"
max-size: "10m"
command: [ "redis-server", "--appendonly", "yes" ]
#ports:
# - 6379:6379
volumes:
- ${DIR}/redis:/data
networks:
infura:
ipv4_address: 10.2.0.101
postgres:
container_name: meminero-postgres
image: postgres:13
restart: always
logging:
options:
max-file: "5"
max-size: "10m"
environment:
- POSTGRES_USER=meminero
- POSTGRES_DB=meminero
- POSTGRES_PASSWORD=password
#ports:
# - 5432:5432
volumes:
- ${DIR}/postgresql:/var/lib/postgresql/data
networks:
infura:
ipv4_address: 10.2.0.102
meminero:
container_name: meminero
build: "./"
restart: always
logging:
options:
max-file: "5"
max-size: "10m"
depends_on:
- redis
- postgres
ports:
- 0.0.0.0:9909:9909
environment:
- PG_PASSWORD=password
volumes:
- ${DIR}/meminero:/config
networks:
infura:
ipv4_address: 10.2.0.103
command:
[
"./meminero",
"scrape",
"queue",
"--config",
"/config/config.yml",
"--vv"
]
internal-api:
container_name: internal-api
image: swingbylabs/internal-api
restart: always
logging:
options:
max-file: "5"
max-size: "10m"
depends_on:
- postgres
ports:
- 0.0.0.0:3001:3001
- 0.0.0.0:9910:9910
volumes:
- ${DIR}/internal-api:/config
networks:
infura:
ipv4_address: 10.2.0.104
command:
[
"./internal-api",
"run",
"--config",
"/config/config.yml"
]
networks:
infura:
name: infura
driver: bridge
ipam:
driver: default
config:
- subnet: 10.2.0.0/24