This repository has been archived by the owner on Apr 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
129 lines (121 loc) · 2.3 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
123
124
125
126
127
128
129
version: "3"
services:
rabbitmq:
image: rabbitmq:management-alpine
container_name: super_rabbitmq
networks:
- backend
- frontend
ports:
- "5672:5672"
- "15672:15672"
restart: always
logging:
driver: "json-file"
options:
max-size: "100MB"
max-file: "3"
mongodb:
image: mongo:4.2.2
container_name: super_mongodb
depends_on:
- rabbitmq
volumes:
- mongodb:/data/db/
ports:
- "27017:27017"
networks:
- backend
logging:
driver: "json-file"
options:
max-size: "100MB"
max-file: "3"
api:
image: node:12
container_name: super_api
depends_on:
- mongodb
volumes:
- ./api:/opt/project/
working_dir: /opt/project
command: yarn dev
networks:
- backend
- frontend
ports:
- "3355:3355"
- "9229:9229"
logging:
driver: "json-file"
options:
max-size: "100MB"
max-file: "3"
parser:
image: node:12
container_name: super_parser
depends_on:
- api
volumes:
- ./parser:/opt/project/
working_dir: /opt/project
command: yarn dev
networks:
- backend
ports:
- "9230:9230"
logging:
driver: "json-file"
options:
max-size: "100MB"
max-file: "3"
web:
image: node:12
container_name: super_web
depends_on:
- api
volumes:
- ./web:/opt/project/
working_dir: /opt/project
command: yarn serve --watch
networks:
- frontend
ports:
- "3366:3366"
logging:
driver: "json-file"
options:
max-size: "100MB"
max-file: "3"
nginx:
image: nginx:stable
container_name: super_nginx
depends_on:
- web
networks:
- frontend
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "80:80"
logging:
driver: "json-file"
options:
max-size: "100MB"
max-file: "3"
dozzle:
container_name: super_dozzle
image: amir20/dozzle:latest
environment:
- DOZZLE_TAILSIZE=100
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9999:8080"
networks:
default:
backend:
frontend:
volumes:
mongodb:
redis: