-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (51 loc) · 975 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
proxy:
image: jwilder/nginx-proxy:latest
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
db:
image: postgres
ports:
- "5432:5432"
redis:
image: redis
ports:
- "6379"
web:
build: .
command: passenger start --port 80
environment:
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- PASSENGER_APP_ENV=development
- RAILS_ENV=development
- REDIS_HOST=docker
- VIRTUAL_HOST=larica.docker.dev
links:
- db
- redis
cron:
build: .
command: whenever
environment:
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- PASSENGER_APP_ENV=development
- RAILS_ENV=development
- REDIS_HOST=docker
links:
- db
- redis
worker:
build: .
command: bundle exec sidekiq -e development -c 25
environment:
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- PASSENGER_APP_ENV=development
- RAILS_ENV=development
- REDIS_HOST=docker
links:
- db
- redis