-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (42 loc) · 987 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
web:
build: .
command: 'bash -c ''bundle exec puma -C config/puma.rb'''
working_dir: /app/user
environment:
PORT: 8080
DATABASE_URL: 'postgres://postgres:@herokuPostgresql:5432/postgres'
REDIS_URL: 'redis://herokuRedis:6379'
ports:
- '8080:8080'
links:
- herokuPostgresql
- herokuRedis
worker:
build: .
command: 'bash -c ''bundle exec sidekiq -C config/sidekiq.yml'''
working_dir: /app/user
environment:
DATABASE_URL: 'postgres://postgres:@herokuPostgresql:5432/postgres'
REDIS_URL: 'redis://herokuRedis:6379'
links:
- herokuPostgresql
- herokuRedis
shell:
build: .
command: bash
working_dir: /app/user
environment:
PORT: 8080
DATABASE_URL: 'postgres://postgres:@herokuPostgresql:5432/postgres'
REDIS_URL: 'redis://herokuRedis:6379'
ports:
- '8080:8080'
links:
- herokuPostgresql
- herokuRedis
volumes:
- '.:/app/user'
herokuPostgresql:
image: postgres
herokuRedis:
image: redis