-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (44 loc) · 1.21 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
version: '3.7'
services:
frontend:
image: ghcr.io/m4rc02u1f4a4/ytrss-frontend:latest
restart: always
environment:
REACT_APP_API_BASE_URL: http://<HOST_IP>:5001
ports:
- 8080:8080
updater:
image: alpine
environment:
REACT_APP_API_BASE_URL: http://backend:5001
command:
- /bin/sh
- -c
- |
apk --update add curl && \
echo $${REACT_APP_API_BASE_URL} && \
echo "0 0 */1 * * curl -X GET $${REACT_APP_API_BASE_URL}/update/channels" > /var/spool/cron/crontabs/root && \
echo "0 */1 * * * curl -X GET $${REACT_APP_API_BASE_URL}/update/videos" >> /var/spool/cron/crontabs/root && \
echo "0 0 */1 * * curl -X GET $${REACT_APP_API_BASE_URL}/clean/videos" >> /var/spool/cron/crontabs/root && \
crond -l 2 -f
depends_on:
- backend
backend:
image: ghcr.io/m4rc02u1f4a4/ytrss-backend:latest
restart: always
environment:
MONGODB_HOST: db
MONGODB_PORT: 27017
G_API_KEY: <GOOGLE_API_KEY>
PYTHONUNBUFFERED: 1
ports:
- 5001:5001
depends_on:
- db
db:
image: mongo
restart: always
environment:
TZ: Europe/Rome
volumes:
- ./docker_db:/data/db