forked from AjuntamentdeBarcelona/decidim-barcelona
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (47 loc) · 913 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (47 loc) · 913 Bytes
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
version: '2'
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:9292
links:
- pg
- redis
command: bundle exec puma
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
redis:
image: redis
volumes:
- redis-data:/data
volumes:
node_modules: {}
bundle: {}
pg-data: {}
redis-data: {}