-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 882 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 882 Bytes
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
version: '3.8'
services:
app:
build: .
command: bundle exec puma -C config/puma.rb
volumes:
- .:/myapp
ports:
- "9292:9292"
depends_on:
- db
- redis
environment:
RACK_ENV: development
db:
image: postgres:13
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: ip_monitoring_development
redis:
image: redis:alpine
volumes:
- redis_data:/data
sidekiq:
build: .
command: bundle exec sidekiq -C ./config/sidekiq.yml -r ./config/initializer/sidekiq.rb
volumes:
- .:/myapp
depends_on:
- app
- db
- redis
environment:
REDIS_URL: redis://redis:6379/0
RACK_ENV: development
volumes:
postgres_data:
redis_data: