This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
122 lines (111 loc) · 2.65 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
version: '3'
# to restore a dump from folder
# docker-compose exec -T mongo mongorestore /dump
services:
base:
build:
context: .
target: build
scale: 0
mongodb:
image: mongo:4.2
ports:
- '27017:27017'
volumes:
- ./backend/dump:/dump/
restart: unless-stopped
mongo-yt-indexes:
image: mongo:4.2
container_name: mongo-yt-indexes
volumes:
- ./platforms/yttrex/backend/scripts:/scripts
command: mongo mongodb:27017/yttrex /scripts/build-indexes.js
depends_on:
- mongodb
mongo-tk-indexes:
image: mongo:4.2
container_name: mongo-tk-indexes
volumes:
- ./platforms/tktrex/backend/scripts:/scripts
command: mongo mongodb:27017/tktrex /scripts/build-indexes.js
depends_on:
- mongodb
mongo-yt-test-indexes:
image: mongo:4.2
container_name: mongo-yt-test-indexes
volumes:
- ./platforms/yttrex/backend/scripts:/scripts
command: mongo mongodb:27017/yttrex-test /scripts/build-indexes.js
depends_on:
- mongodb
mongo-tk-test-indexes:
image: mongo:4.2
container_name: mongo-tk-test-indexes
volumes:
- ./platforms/tktrex/backend/scripts:/scripts
command: mongo mongodb:27017/tktrex-test /scripts/build-indexes.js
depends_on:
- mongodb
build-from-zip:
image: node:16-slim
build:
dockerfile: from-zip.Dockerfile
context: .
target: unzip
entrypoint: /bin/sh
container_name: build-from-zip
stdin_open: true # docker run -i
tty: true # docker run -t
yt-backend:
image: trex:yt-backend
build:
dockerfile: Dockerfile.ytbackend
context: .
yt-server:
image: trex:yt-backend
container_name: yt-server
command: yarn start
ports:
- '9000:9000'
env_file:
- ./platforms/yttrex/backend/.env
environment:
- BACKEND_DEBUG=yttrex*,@trex*
- mongoHost=mongodb
depends_on:
- yt-backend
- mongodb
- mongo-yt-indexes
deploy:
resources:
limits:
memory: 1000M
yt-parser:
image: trex:yt-backend
container_name: yt-parser
command: yarn parserv
env_file:
- ./platforms/yttrex/backend/.env
environment:
- PARSER_DEBUG=@trex:htmls:*,-@trex:htmls:debug
- mongoHost=mongodb
depends_on:
- mongodb
- mongo-yt-indexes
deploy:
resources:
limits:
memory: 2048M
tk-backend:
build:
dockerfile: Dockerfile.tkbackend
context: .
container_name: tk-backend
ports:
- '14000:14000'
environment:
- DEBUG=*
- mongoHost=mongodb
depends_on:
- mongodb
- mongo-tk-indexes