-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
84 lines (76 loc) · 1.94 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
version: "3.9"
services:
polling-service:
image: wiki-analyzer/polling
build: ./polling-service
environment:
- PORT=3000
- FASTIFY_LOG_LEVEL=info
- WIKI_API=https://stream.wikimedia.org/v2/stream/recentchange
networks:
- wiki-polling-net
timescale:
image: timescale/timescaledb:2.0.0-pg12
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=wikistatistic
networks:
- statistic-net
volumes:
- ./statistic-delivery-service/sql:/docker-entrypoint-initdb.d
- timescale-data:/var/lib/postgresql/data
statistic-collector-service:
image: wiki-analyzer/statistic-collector
build: ./statistic-collector-service
depends_on:
- polling-service
- timescale
environment:
- PGUSER=postgres
- PGPASSWORD=postgres
- PGDATABASE=wikistatistic
- PGPORT=5432
- PGHOST=timescale
- RECENT_CHANGES_API_URL=ws://polling-service:3000/detailed-recent-changes
networks:
- wiki-polling-net
- statistic-net
recent-changes-service:
image: wiki-analyzer/recent-changes
build: ./recent-changes-service
depends_on:
- polling-service
environment:
- PORT=3000
- FASTIFY_LOG_LEVEL=info
- POLLING_SERVICE=polling-service:3000
networks:
- wiki-polling-net
- proxy-net
statistic-delivery-service:
image: wiki-analyzer/statistic-delivery
build: ./statistic-delivery-service
depends_on:
- timescale
environment:
- DB_URL=postgres://postgres:postgres@timescale:5432/wikistatistic
- PORT=3000
networks:
- proxy-net
- statistic-net
nginx-proxy:
image: wiki-analyzer/nginx-proxy
build: ./nginx-proxy
depends_on:
- recent-changes-service
- statistic-delivery-service
networks:
- proxy-net
ports:
- 80:80
networks:
wiki-polling-net:
proxy-net:
statistic-net:
volumes:
timescale-data: