-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
143 lines (134 loc) · 3.17 KB
/
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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: "3.9"
services:
registry:
image: registry:2
container_name: feed-parser-registry
ports:
- "5002:5002"
restart: always
networks:
- feed-parser-net
service:
image: ${REGISTRY:-localhost:5002}/feed-parser-service:main-1
build:
dockerfile: Dockerfile
restart: always
depends_on:
- registry
networks:
- feed-parser-net
volumes:
- config:/app/config
environment:
CONFIG_PATH: './config/local.yaml'
INDEX_NOW_KEY: 'HnZJOup42wLcpbCJTYA1d1V7afW76gXkjBf1gXQZ9jSO0KRWyH2zRH8qnlF75w3x'
command: './feed-parser-service'
deploy:
replicas: 0
restart_policy:
condition: on-failure
rssfeed:
image: ${REGISTRY:-localhost:5002}/feed-static-generator:main-1
build:
dockerfile: Dockerfile_static
environment:
MANTICORE_INDEX: 'feed'
GENERATOR_DELAY: '60s'
restart: always
depends_on:
- registry
networks:
- feed-parser-net
volumes:
- static:/app/static
command: './feed-static-generator'
deploy:
replicas: 1
restart_policy:
condition: on-failure
server:
image: ${REGISTRY:-localhost:5002}/feed-server:main-1
build:
dockerfile: Dockerfile_srv
ports:
- "8000:8000"
restart: always
depends_on:
- registry
networks:
- traefik-public
- feed-parser-net
volumes:
- static:/app/static
command: './feed-server'
deploy:
replicas: 1
restart_policy:
condition: on-failure
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.feed-srv.rule=Host(`rss.localhost`)
- traefik.http.routers.feed-srv.entryPoints=http
- traefik.http.services.feed-srv.loadBalancer.server.port=8000
kremlin-indexer:
image: ${REGISTRY:-localhost:5002}/feed-kremlin-indexer:main-1
build:
dockerfile: Dockerfile_kremlin
depends_on:
- registry
volumes:
- config:/app/config
networks:
- traefik-public
- feed-parser-net
environment:
CONFIG_PATH: './config/kremlin/local.yaml'
command: './feed-kremlin-indexer'
deploy:
replicas: 0
restart_policy:
condition: none
mil-indexer:
image: ${REGISTRY:-localhost:5002}/feed-mil-indexer:main-1
build:
dockerfile: Dockerfile_mil
depends_on:
- registry
volumes:
- config:/app/config
networks:
- feed-parser-net
environment:
CONFIG_PATH: './config/mil/local.yaml'
command: './feed-mil-indexer'
deploy:
replicas: 0
restart_policy:
condition: none
mid-indexer:
image: ${REGISTRY:-localhost:5002}/feed-mid-indexer:main-1
build:
dockerfile: Dockerfile_mid
depends_on:
- registry
volumes:
- config:/app/config
networks:
- feed-parser-net
environment:
CONFIG_PATH: './config/mid/local.yaml'
command: './feed-mid-indexer'
deploy:
replicas: 0
restart_policy:
condition: none
volumes:
config:
static:
networks:
traefik-public:
external: true
feed-parser-net:
name: feed-parser-net
external: true