forked from alephdata/memorious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
60 lines (54 loc) · 1.3 KB
/
docker-compose.dev.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
59
60
version: "2"
services:
datastore:
image: postgres:11.4
volumes:
- "./build/datastore:/var/lib/postgresql/data"
environment:
POSTGRES_USER: datastore
POSTGRES_PASSWORD: datastore
redis:
image: redis:alpine
command: [ "redis-server", "--appendonly", "yes" ]
volumes:
- ./build/redis-data:/data
redis-commander:
image: rediscommander/redis-commander:latest
restart: always
environment:
REDIS_HOSTS: local:redis:6379
ports:
- "0.0.0.0:8081:8081"
shell:
build: .
command: sh /crawlers/scripts/worker.sh
links:
- redis
- datastore
volumes:
- "./build/data:/data"
- "./example:/crawlers"
- "./memorious:/memorious/memorious"
tmpfs:
- "/tmp"
environment:
MEMORIOUS_BASE_PATH: /data
MEMORIOUS_CONFIG_PATH: /crawlers/config
MEMORIOUS_DEBUG: "false"
ARCHIVE_PATH: /data/archive
REDIS_URL: redis://redis:6379/0
MEMORIOUS_DATASTORE_URI: postgresql://datastore:datastore@datastore/datastore
WORKER_THREADS: 20
ports:
- "0.0.0.0:5678:5678"
httpbin:
image: kennethreitz/httpbin
proxy:
image: fsouza/docker-ssl-proxy
environment:
DOMAIN: localhost
TARGET_HOST: httpbin
links:
- httpbin
ports:
- 443:443