-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yml
107 lines (105 loc) · 2.02 KB
/
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
services:
server:
image: node:lts
restart: always
build:
context: ./server
dockerfile: Dockerfile
container_name: node_app
networks:
- nginx_network
ports:
- 3000:3000
api:
build:
context: ./api
dockerfile: Dockerfile
container_name: api_app
networks:
- nginx_network
ports:
- 3001:3001
admin:
build:
context: ./admin
dockerfile: Dockerfile
container_name: admin_app
networks:
- nginx_network
ports:
- 8000:8000
core:
image: nginx:latest
restart: always
build:
context: ./core
dockerfile: Dockerfile
container_name: nginx_app
depends_on:
- api
- admin
- server
- mongodb
volumes:
- ./core/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- nginx_network
ports:
- 80:80
fluentd:
image: fluentd:latest
container_name: fluentd_app
restart: always
build:
context: ./fluentd
dockerfile: Dockerfile
depends_on:
- mongodb
networks:
- nginx_network
ports:
- "24224:24224"
- "24224:24224/udp"
volumes:
- ./fluentd/fluent.conf:/fluentd/etc/fluent.conf
- ./log/nginx.log:/nginx.log
mongodb:
image: mongo:latest
container_name: mongo_app
networks:
- nginx_network
ports:
- 27017:27017
pipe:
container_name: pipe_app
build:
context: ./pipe
dockerfile: Dockerfile
networks:
- nginx_network
volumes:
- ./log/nginx.log:/nginx.log
model:
container_name: model_app
restart: always
build:
context: ./guard
dockerfile: Dockerfile
networks:
- nginx_network
volumes:
- ./pipe/log_data.xlsx:/log_data.xlsx
ci:
container_name: ci_app
build:
context: ./ci
dockerfile: Dockerfile
networks:
- nginx_network
ports:
- 3002:3002
volumes:
- ./guard/output.txt:/var/www/app/output.txt
networks:
nginx_network:
driver: bridge