forked from dogbin/dogbin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
93 lines (91 loc) · 2.72 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
version: '3'
volumes:
prometheus_data: {}
grafana_data: {}
services:
reverse-proxy:
image: traefik:v2.0
command: --api.insecure=true --providers.docker
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.http.routers.reverse-proxy.rule=Host(`traefik.docker.localhost`)"
dogbin:
build: .
image: dogbin/dogbin
environment:
- SESSION_KEY=fc028d9226d5616261dbd69f13cfee4f
- DB_LOCATION=/dogbin.xdb
- HOST=l.del.dog
- SIMPLEANALYTICS=false
volumes:
- ./dogbin.xdb:/dogbin.xdb
expose:
- 8080
- 9090
links:
- "highlighter:highlighter"
- "screenshotter:screenshotter"
- "iframely:iframely"
labels:
- "traefik.http.routers.dogbin.rule=Host(`l.del.dog`)"
highlighter:
build: microservices/highlighter/
image: dogbin/highlighter
labels:
- "traefik.http.routers.highlighter.rule=Host(`highlighter.docker.localhost`)"
screenshotter:
image: dogbin/screenshotter
restart: always
environment:
- DOGBIN_HOST=http://dogbin:8080
labels:
- "traefik.http.routers.highlighter.rule=Host(`screenshotter.docker.localhost`)"
iframely:
image: dogbin/iframely
environment:
- PORT=80
- HOST=iframely
expose:
- 80
volumes:
- ./iframely.config.js:/iframely/config.local.js
command: server.js
labels:
- "traefik.http.routers.iframely.rule=Host(`iframely.docker.localhost`) || (Host(`l.del.dog`) && PathPrefix(`/r/`))"
prometheus:
image: prom/prometheus
volumes:
- ./deployment/prometheus:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
grafana:
image: grafana/grafana
depends_on:
- prometheus
volumes:
- grafana_data:/var/lib/grafana
- ./deployment/grafana/provisioning/:/etc/grafana/provisioning/
environment:
- GF_SECURITY_ADMIN_PASSWORD=foobar
- GF_USERS_ALLOW_SIGN_UP=false
labels:
- "traefik.http.routers.grafana.rule=Host(`grafana.docker.localhost`)"
node-exporter:
image: prom/node-exporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- --collector.filesystem.ignored-mount-points
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"