forked from zooniverse/panoptes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 964 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
postgres:
image: postgres:9.4
environment:
- "POSTGRES_USER=panoptes"
- "POSTGRES_PASSWORD=panoptes"
ports:
- "5432:5432"
redis:
image: redis
command: redis-server --appendonly yes
# ports:
# - "6379:6379"
cellect:
image: zooniverse/cellect-panoptes
ports:
- "4000:80"
environment:
- "RACK_ENV=development"
#cellect registers a hostname but no port, so we need prod port 80
- "PUMA_PORT=80"
- "PUMA_MAX_THREADS=16"
- "DEBUG_CELLECT_START=true"
- "DATABASE_URL=postgresql://panoptes:panoptes@pg:5432/panoptes_development?pool=16"
- "ATTENTION_REDIS_URL=redis://redis:6379/1"
links:
- redis
- postgres:pg
panoptes:
dockerfile: Dockerfile.dev
build: ./
volumes:
- ./:/rails_app
ports:
- "3000:3000"
environment:
- "RAILS_ENV=development"
- "CELLECT_MIN_POOL_SIZE=100"
- "ATTENTION_REDIS_URL=redis://redis:6379/1"
links:
- redis:redis
- postgres:pg