-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.39 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
version: '3.7'
services:
aws-for-fluent-bit-custom:
build: ./aws-for-fluent-bit-custom
command: "/fluent-bit/bin/fluent-bit -c /fluent-bit/conf/local_stdout_test.conf"
ports:
- "24224:24224"
- "24224:24224/udp"
backend-flask:
build: ./backend-flask/flask
ports:
- "5000:5000"
depends_on:
- aws-for-fluent-bit-custom
logging:
driver: fluentd
restart: always
environment:
- VERSION=V1
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:5000"]
interval: 30s
timeout: 5s
retries: 5
start_period: 30s
backend-flask-nginx-proxy:
build: ./backend-flask/nginx
ports:
- "80:80"
depends_on:
- aws-for-fluent-bit-custom
- backend-flask
logging:
driver: fluentd
environment:
- BACKEND_FLASK_HOST=backend-flask
- BACKEND_FLASK_PORT=5000
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
frontend-express:
depends_on:
- aws-for-fluent-bit-custom
- backend-flask-nginx-proxy
logging:
driver: fluentd
build: ./frontend-express
restart: always
ports:
- "8080:8080"
restart: always
environment:
- BACKEND_SERVICE=http://backend-flask-nginx-proxy/backend
- PORT=8080