-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-wip.yml
80 lines (75 loc) · 1.66 KB
/
docker-compose-wip.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.1'
services:
app:
image: node:11.11-alpine
volumes:
- .:/proj
- ./temp:/temp
working_dir: /proj
ports:
- 3000:3000
command: node src/api/crawl.js
secrets:
- AMZN_ACCESS_KEY_ID
- AMZN_ACCESS_KEY_SECRET
- AMZN_ASSOCIATE_TAG
environment:
- AMZN_SERVICE_HOST
- DB_URL=bolt://graphdb
- PRICE_LOOKUP_ENDPOINT=http://prices:3000/price
- AMZN_RECS_LOG_LEVEL=DEBUG
- CRAWL_API_ENDPOINT=http://127.0.0.1:3000
- STATSD_HOST=datadog_agent
networks:
- monitoring
- default
graphdb:
image: neo4j:3.4
ports:
- 7474:7474
- 7687:7687
volumes:
- ./neo4j/data:/data
- ./neo4j/logs:/logs
environment:
- NEO4J_AUTH=none
networks:
- monitoring
- default
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:neo4j.pentland.ml"
- "traefik.http.port=7474"
- "traefik.bolt.port=7687"
- "traefik.basic.protocol=http"
prices:
image: bmordue/price-for-asin:latest
environment:
- STATSD_HOST=datadog_agent
networks:
- monitoring
- default
- web
# ports:
# - 3000:3000
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Path:/price"
- "traefik.basic.port=3000"
- "traefik.basic.protocol=http"
secrets:
AMZN_ACCESS_KEY_ID:
external: true
AMZN_ACCESS_KEY_SECRET:
external: true
AMZN_ASSOCIATE_TAG:
external: true
volumes:
data-volume:
networks:
monitoring:
external: true
web:
external: true