-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
81 lines (73 loc) · 1.58 KB
/
docker-compose.dev.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '2'
services:
db:
image: postgres:9.6
volumes:
- ./backups:/backups
ports:
- "5432:5432"
expose:
- "5432"
environment:
POSTGRES_DB: aeonvera_development
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- backend
redis:
image: redis:3.2
networks:
- backend
rails: &rails
build:
context: .
dockerfile: ./Dockerfile
networks:
- backend
env_file:
- .env
volumes:
- .:/web
- ./backups:/backups
environment:
# simulating heroku usage
- THREADED_SIDEKIQ=true
- RAILS_ENV=development
- REDIS_URL=redis://redis.local:6379
- REDIS_PROVIDER=redis://redis.local:6379
- REDIS_HOST=redis.local
- REDIS_PORT=6379
- DATABASE_HOST=db.local
- DATABASE_NAME=aeonvera_development
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_PORT=5432
- SIDEKIQ_USERNAME=devuser
- SIDEKIQ_PASSWORD=1234
- SQREEN_LOG_LEVEL=DEBUG
- SQREEN_LOG_LOCATION=/dev/stderr
web:
<<: *rails
command: bundle exec rails s -p 4301 -b '0.0.0.0'
# command: bundle exec puma -C ./config/puma.rb -b tcp://0.0.0.0:4301
ports:
- "4301:4301"
env_file:
- .env
links:
- db
# - worker
- db:db.local
- redis
- redis:redis.local
# worker:
# <<: *rails
# command: bundle exec sidekiq
# links:
# - db
# - db:db.local
# - redis
# - redis:redis.local
networks:
backend:
driver: bridge