forked from neckhair/rails-on-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (47 loc) · 950 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
44
45
46
47
48
49
50
51
52
53
proxy:
image: jwilder/nginx-proxy:latest
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
db:
image: postgres:9.4.2 # Heroku PostgreSQL Version
ports:
- "5432:5432" # Bind host port 5432 to PostgreSQL port 5432
volumes_from:
- dbdata
environment:
LC_ALL: C.UTF-8
POSTGRES_PASSWORD: HowCanYouGuess
dbdata:
image: postgres:9.4.2
command: /bin/echo PostgreSQL Data Container
redis:
image: redis
cache:
image: memcached
web:
build: .
command: bundle exec unicorn -E development -c config/unicorn.rb
ports:
- "8080:8080"
volumes:
- .:/rails
environment:
SECRET_KEY_BASE: abcdefg
VIRTUAL_HOST: beer.docker
RAILS_ENV: development
links:
- db
- redis
- cache
worker:
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
environment:
SECRET_KEY_BASE: abcdefg
RAILS_ENV: development
links:
- db
- redis
- cache