-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
49 lines (49 loc) · 1.12 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
version: '3'
services:
db:
image: postgres
volumes:
- 'postgres:/var/lib/postgresql/data'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: super-secure-password
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
links:
- db
- redis
environment:
DATABASE_URL: postgres://postgres:super-secure-password@db:5432/myapp_development
TOTP_ENCRYPTION_KEY: something-really-awesome-that's-at-least-32-bytes
REDIS_URL: redis://redis:6379
RAILS_ENV: development
sidekiq:
build: .
command: bundle exec sidekiq
volumes:
- .:/myapp
depends_on:
- db
- redis
links:
- db
- redis
environment:
DATABASE_URL: postgres://postgres:super-secure-password@db:5432/myapp_development
TOTP_ENCRYPTION_KEY: something-really-awesome-that's-at-least-32-bytes
REDIS_URL: redis://redis:6379
RAILS_ENV: development
redis:
image: redis
volumes:
- 'redis:/data'
volumes:
postgres:
redis: