-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
62 lines (54 loc) · 1.03 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
version: '3.7'
networks:
app_perf:
x-base: &base
build:
context: .
dockerfile: Dockerfile.dev
command: irb
networks:
- app_perf
volumes:
- '.:/app'
env_file:
- '.env.docker'
depends_on:
- 'postgres'
- 'redis'
services:
postgres:
image: 'postgres:9.6-alpine'
environment:
POSTGRES_USER: 'app_perf'
POSTGRES_PASSWORD: 'password'
ports:
- '6543:5432'
volumes:
- 'postgres:/var/lib/postgresql/data'
networks:
- app_perf
redis:
image: 'redis:5.0.7-alpine'
command: redis-server
ports:
- '5268:6379'
volumes:
- 'redis:/data'
networks:
- app_perf
website:
<<: *base
command: bundle exec rails s -p 5000
ports:
- '5000:5000'
worker:
<<: *base
command: bundle exec sidekiq -C config/sidekiq.yml
agent:
<<: *base
command: bundle exec app_perf_agent --host website:5000 --license-key e47a7331-77cd-4ea0-8be1-b4130255a3a8 -f
depends_on:
- 'website'
volumes:
redis:
postgres: