-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.legacy.yml
112 lines (100 loc) · 2.74 KB
/
docker-compose.legacy.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
version: '3.4'
# envs https://medium.com/softonic-eng/docker-compose-from-development-to-production-88000124a57c
services:
# https://hub.docker.com/_/postgres/
postgres:
image: postgres:15
container_name: postgres
environment:
- POSTGRES_DB=feedless-legacy
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
expose:
- 5432
ports:
- "5432:5432"
networks:
- postgres
feedless-agent:
image: damoeb/feedless:agent-0.1
security_opt:
- seccomp=./chrome.json
restart: unless-stopped
environment:
- APP_EMAIL=${APP_ROOT_EMAIL}
- APP_SECRET_KEY=${APP_ROOT_SECRET_KEY}
- APP_PRERENDER_TIMEOUT_MILLIS=${APP_PRERENDER_TIMEOUT_MILLIS}
- APP_PRERENDER_EVAL_SCRIPT_TIMEOUT_MILLIS=${APP_PRERENDER_EVAL_SCRIPT_TIMEOUT_MILLIS}
- APP_SECURE=false
# healthcheck:
# test: curl -f https://localhost:3000 || exit 1
networks:
- puppeteer
- monitoring
feedless-app:
image: damoeb/feedless:app-0.1
volumes:
- ./docker/legacy/app-config.json:/usr/share/nginx/html/config.json
ports:
- "4200:80"
feedless-core:
image: damoeb/feedless:core-0.1
# healthcheck:
# test: curl -f https://localhost:8080 || exit 1
depends_on:
- postgres
ports:
- "8080:8080"
env_file:
- .env
environment:
- APP_DATABASE_URL=jdbc:postgresql://postgres:5432/feedless-legacy
- APP_ACTIVE_PROFILES=database,cache,metrics
- APP_WHITELISTED_HOSTS=feedless-core,172.26.0.1
- AUTH_TOKEN_ANONYMOUS_VALIDFORDAYS=3
- DNS_TEST_URL=br.de
networks:
- postgres
- monitoring
- puppeteer
# ----------------------------------------------------------------------------------------------------------------------
# -- MONITORING
# ----------------------------------------------------------------------------------------------------------------------
loki:
image: grafana/loki:2.5.0
volumes:
- ./docker/loki:/etc/loki
ports:
- "3100:3100"
command: -config.file=/etc/loki/loki.yml
networks:
- monitoring
prometheus:
image: prom/prometheus
environment:
- APP_ACTUATOR_PASSWORD=${APP_ACTUATOR_PASSWORD}
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- monitoring
autoheal:
image: willfarrell/autoheal
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- monitoring
secrets:
TOKEN_SECRET:
file: ./tokenSecret.txt
networks:
postgis:
driver: bridge
postgres:
driver: bridge
monitoring:
driver: bridge
puppeteer:
driver: bridge