-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
62 lines (58 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
---
services:
db:
image: postgres:latest
volumes:
- type: volume
source: db
target: /var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5433:5432"
redis:
image: redis:7.0
command: redis-server
ports:
- "6379:6379"
volumes:
- type: volume
source: redis
target: /var/lib/redis/data
sidekiq:
entrypoint: ./docker-entrypoint.sh
depends_on:
- redis
build: .
command: bundle exec sidekiq
volumes:
- type: bind
source: .
target: /app
environment:
REDIS_URL: redis://redis:6379/1
DATABASE_URL: postgres://postgres:postgres@db:5432
web:
build:
context: .
entrypoint: ./docker-entrypoint.sh
command: bash -c "bundle exec rails s -b 0.0.0.0 -p 3000"
stdin_open: true
tty: true
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432
REDIS_URL: redis://redis:6379/1
ports:
- "3000:3000"
depends_on:
- db
- sidekiq
- redis
volumes:
- .:/app
- bundle:/bundle
volumes:
bundle:
redis:
db: