forked from OpenSourcePolitics/decidim-nyc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (44 loc) · 911 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
version: '3'
services:
database:
image: postgres
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
redis:
image: redis
ports:
- 6379:6379
volumes:
- redis-data:/var/lib/redis/data
sidekiq:
image: decidim-app:latest
command: ["sidekiq", "-C", "config/sidekiq.yml"]
environment:
- REDIS_URL=redis://redis:6379
depends_on:
- app
links:
- database
- redis
app:
image: decidim-app:develop
volumes:
- node_modules:/app/node_modules
environment:
- PORT=3000
- DATABASE_HOST=127.0.0.1
- DATABASE_USERNAME=postgres
- RAILS_ENV=development
- DECIDIM_HOST=0.0.0.0
- REDIS_URL=redis://redis:6379
ports:
- 3000:3000
links:
- database
- redis
volumes:
node_modules: {}
pg-data: {}
redis-data: {}