-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (76 loc) · 1.82 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
version: '3'
services:
redis:
restart: unless-stopped
image: redis:latest
volumes:
- redis_data:/data
expose:
- "6379"
dramatiq_worker:
restart: unless-stopped
build:
context: .
dockerfile: dockerfiles/Dockerfile.worker
environment:
REDIS_URL: redis
WATCHER_PATH: /work
dramatiq_prom_host: dramatiq_worker
dramatiq_prom_port: 9191
depends_on:
- redis
volumes:
- /tmp:/work
entrypoint: ./start-workers.sh
expose:
- "9191"
dramatiq_web:
restart: unless-stopped
build:
context: .
dockerfile: dockerfiles/Dockerfile.web
environment:
REDIS_URL: redis
WATCHER_PATH: /work
DASHBOARD_PREFIX: /esperanto/dashboard # PREFIX URL FOR DASHBOARD
depends_on:
- redis
- nginx
volumes:
- /tmp:/work
entrypoint: ./start-web.sh
expose:
- "5000"
# ports:
# - "5000:5000"
prometheus:
restart: unless-stopped
image: prom/prometheus:latest
depends_on:
- nginx
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --web.console.libraries=/etc/prometheus/console_libraries
- --web.console.templates=/etc/prometheus/consoles
- --storage.tsdb.retention=200h
- --web.enable-lifecycle
- --web.route-prefix=/
- --web.external-url=http://localhost:8080/esperanto/prometheus # EXTERNAL URL TO REACH PROMETHEUS
expose:
- "9090"
# ports:
# - "9090:9090"
nginx:
restart: unless-stopped
build:
context: .
dockerfile: dockerfiles/Dockerfile.nginx
ports:
- "8080:80"
volumes:
redis_data: # FLUSHDB to clear redis
prometheus_data: