-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 963 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
version: '3'
services:
app:
build: .
volumes:
- .:/app
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
environment:
- PORT=3000
- DATABASE_HOST=pg
- DATABASE_USERNAME=postgres
- RAILS_ENV=development
- REDIS_URL=redis://redis:6379
ports:
- '3000:3000'
links:
- pg
- redis
command: bin/dev
worker:
build: .
volumes:
- .:/app
- bundle:/usr/local/bundle
environment:
- DATABASE_HOST=pg
- DATABASE_USERNAME=postgres
- RAILS_ENV=development
- REDIS_URL=redis://redis:6379
links:
- pg
- redis
command: bundle exec sidekiq
pg:
image: postgres
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
redis:
image: redis
volumes:
- redis-data:/data
volumes:
node_modules: {}
bundle: {}
pg-data: {}
redis-data: {}