forked from librariesio/libraries.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (38 loc) · 948 Bytes
/
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
volumes:
postgres-data:
driver: local
redis-data:
driver: local
services:
postgres:
image: postgres:9.6.24
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=not-a-secret
- POSTGRES_USER=librariesio
ports:
- "5432:5432"
redis:
image: redis:7
volumes:
- redis-data:/var/lib/redis
command: redis-server --appendonly yes
sidekiq: &app_base
build:
context: .
image: haranaoss/lio:1
environment:
- DATABASE_URL=postgresql://librariesio:not-a-secret@postgres/librariesio
- REDISCLOUD_URL=redis://redis:6379/1
volumes:
- .:/harana.dev
depends_on:
- postgres
- redis
command: bundle exec sidekiq -C config/sidekiq.yml
web:
<<: *app_base
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server --port 3000 --binding '0.0.0.0'"
ports:
- "3000:3000"