-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-dev.yml
118 lines (101 loc) · 2.29 KB
/
docker-compose-dev.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: '3.4'
# see docker-compose.yml for defaults extended here
x-signald-overrides: &signald-overrides
env_file: .env.dev
networks: # see [1]
default:
external:
name: localdev
volumes:
prometheus_data:
grafana_data:
services:
app:
env_file: .env.dev
ports:
- 0.0.0.0:9229:9229
db:
ports:
- 0.0.0.0:5432:5432
signald_0:
<<: *signald-overrides
ports:
- 0.0.0.0:8010:8016
signald_1:
<<: *signald-overrides
ports:
- 0.0.0.0:8011:8016
signald_2:
<<: *signald-overrides
ports:
- 0.0.0.0:8012:8016
signald_3:
<<: *signald-overrides
ports:
- 0.0.0.0:8013:8016
signald_4:
<<: *signald-overrides
ports:
- 0.0.0.0:8014:8016
signald_5:
<<: *signald-overrides
ports:
- 0.0.0.0:8015:8016
ngrok:
container_name: signalboost_ngrok
ports:
- 0.0.0.0:4040:4040
networks:
- default
image: wernight/ngrok
links:
- app
env_file: .env.dev
environment:
- NGROK_PORT=app:3000
restart: always
prometheus:
image: prom/prometheus:v2.18.1
ports:
- 9090:9090
user: root
networks:
- default
volumes:
- ./prometheus/prometheus_dev.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus_data
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus_data'
- '--log.level=debug'
restart: always
grafana:
image: grafana/grafana:7.0.3
depends_on:
- prometheus
ports:
- 5000:5000
networks:
- default
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/config/grafana.ini:/etc/grafana/grafana.ini
environment:
- GF_SERVER_HTTP_PORT=5000
restart: always
# -----------------------------
# [1] NOTE:
#
# we create a `localdev` network w/ a non-standard subnet mask to be able to use
# use docker from behdind a VPN, which is often necessary to auth w/ Signal.
# (see: https://github.com/docker/for-linux/issues/418#issuecomment-491323611)
#
# USAGE:
#
# for this to work you must first run the following (which is done automatically
# by `make _.setup`):
#
# ```bash
# docker network create localdev --subnet 10.0.1.0/24
# ```