-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (57 loc) · 1.21 KB
/
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
50
51
52
53
54
55
56
57
58
version: '3'
services:
database:
image: postgres
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
memcached:
image: memcached
ports:
- "11211:11211"
redis:
image: redis
ports:
- "6379:6379"
volumes:
- redis-data:/var/lib/redis/data
sidekiq:
build:
context: .
command: [ "bundle", "exec", "sidekiq", "-C", "config/sidekiq.yml" ]
environment:
- REDIS_URL=redis://redis:6379
- MEMCACHE_SERVERS=memcached:11211
- DATABASE_HOST=database
- DATABASE_USERNAME=postgres
depends_on:
- app
links:
- database
- redis
app:
build:
context: .
volumes:
- .:/app
- node_modules:/app/node_modules
environment:
- DATABASE_HOST=database
- DATABASE_USERNAME=postgres
- DECIDIM_HOST=0.0.0.0
- REDIS_URL=redis://redis:6379
- MEMCACHE_SERVERS=memcached:11211
- RAILS_SERVE_STATIC_FILES=true
- RAILS_LOG_TO_STDOUT=true
- DEFACE_ENABLED=false
ports:
- 3000:3000
depends_on:
- database
- redis
- memcached
volumes:
node_modules: { }
pg-data: { }
redis-data: { }