-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
73 lines (72 loc) · 1.85 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
version: '3.2'
networks:
default:
external:
name: iae_network
services:
db:
image: postgres
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=iae_development
- POSTGRES_USER=iae
- POSTGRES_PASSWORD=password
redis:
image: redis
command: redis-server
ports:
- 6379:6379
volumes:
- redis:/data
redis_predictor:
image: redis
command: redis-server --port 8000
ports:
- 8000:8000
volumes:
- redis_predictor:/data
sidekiq:
image: iae:1.0
depends_on:
- db
- redis
- redis_predictor
command: bundle exec sidekiq
volumes:
- .:/app
- iae_uploads:/app/public/uploads
environment:
- REDIS_URL_SIDEKIQ=redis://redis:6379/
- DATABASE_URL=postgres://iae:password@db:5432/iae_development?pool=5
web:
build:
context: .
dockerfile: Dockerfile.dev
image: iae:1.0
depends_on:
- db
- redis
- redis_predictor
ports:
- 3000:3000
volumes:
- .:/app
- node_modules:/app/node_modules
- iae_uploads:/app/public/uploads
environment:
- DATABASE_USER=iae
- DATABASE_PASSWORD=password
- DATABASE_HOST=db
- DATABASE_NAME=iae_development
- RAILS_ENV=development
- REDIS_URL_CACHING=redis://redis:6379/0
- PREDICTOR_REDIS=redis://redis_predictor:8000/0
entrypoint: ./entrypoints/docker-entrypoint.sh
volumes:
db_data:
node_modules:
redis:
redis_predictor:
iae_uploads:
external: true