-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
101 lines (92 loc) · 1.86 KB
/
docker-compose.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3"
services:
email:
build:
context: .
dockerfile: email/Dockerfile
environment:
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_USERNAME: ${SMTP_USERNAME}
SMTP_PASSWORD: ${SMTP_PASSWORD}
image: email
networks:
- sendtokindle
articlescrape:
build:
context: .
dockerfile: articlescrape/Dockerfile
depends_on:
- "selenium"
environment:
SELENIUM_HOST: http://selenium:4444/wd/hub
image: articlescrape
networks:
- sendtokindle
html2mobi:
build:
context: .
dockerfile: html2mobi/Dockerfile
environment:
KINDLEGEN: /service/html2mobi/kindlegen
image: html2mobi
networks:
- sendtokindle
selenium:
image: selenium
image: selenium/standalone-chrome
hostname: selenium
ports:
- 4444:4444
networks:
- sendtokindle
website:
build:
context: .
dockerfile: website/Dockerfile
depends_on:
- "redis"
- "email"
environment:
DATABASE_URI: ${DATABASE_URI}
EMAIL_HOST: email:50051
REDIS_HOST: redis://redis:6379
image: website
networks:
- sendtokindle
ports:
- 3031:3031
worker:
build:
context: .
dockerfile: worker/Dockerfile
depends_on:
- "redis"
- "articlescrape"
- "email"
- "html2mobi"
environment:
ARTICLESCRAPE_HOST: articlescrape:50051
EMAIL_HOST: email:50051
HTML2MOBI_HOST: html2mobi:50051
REDIS_HOST: redis:6379
image: worker
networks:
- sendtokindle
redis:
image: redis:6-alpine
networks:
- sendtokindle
nginx:
build:
context: .
dockerfile: website/nginx.Dockerfile
depends_on:
- "website"
image: nginx
networks:
- sendtokindle
ports:
- 80:80
networks:
sendtokindle: