-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.yml
executable file
·65 lines (56 loc) · 1.17 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
version: '3.4'
x-app-service-template: &app
build: rails_app
image: yabeda-rails-app:1.0
volumes:
- ./rails_app:/app
services:
rails:
<<: *app
ports:
- 5000:5000
environment:
REDIS_URL: redis://redis:6379/0
stdin_open: true
tty: true
depends_on:
- redis
command: bundle exec puma -C config/puma.rb
sidekiq:
<<: *app
ports:
- 5100:5100
environment:
PORT: 5100
REDIS_URL: redis://redis:6379/0
depends_on:
- redis
command: sidekiq -C config/sidekiq.yml
redis:
image: redis
command: redis-server
grafana:
image: grafana/grafana:10.2.2
depends_on:
- prometheus
ports:
- 3000:3000/tcp
volumes:
- ./grafana_db:/var/lib/grafana
user: "0"
prometheus:
image: prom/prometheus:v2.48.1
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090/tcp
depends_on:
- rails
command:
- --config.file=/etc/prometheus/prometheus.yml
rails_stressor:
build: rails_stressor
image: rails_stressor
depends_on:
- rails
command: -z 2m -c 15 -m GET http://rails:5000