This repository was archived by the owner on Mar 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (117 loc) · 2.39 KB
/
docker-compose.yml
File metadata and controls
118 lines (117 loc) · 2.39 KB
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
version: '3'
# TODO: сделать маппинг на конфиги
services:
postgres:
image: postgres
ports:
- "127.0.0.1:5432:5432"
volumes:
- ~/base/postgres:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: "user"
RABBITMQ_DEFAULT_PASS: "user"
ports:
- "127.0.0.1:15672:15672"
- "127.0.0.1:5672:5672"
mongodb:
image: mongo:latest
ports:
- "127.0.0.1:27017:27017"
volumes:
- ~/base/mongo:/data/db
gateway:
build:
context: ./python/gateway
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- data
- object
- stats
- users
- companies
links:
- data
- object
- stats
- users
- companies
data:
restart: unless-stopped
build:
context: ./python/data
dockerfile: Dockerfile
depends_on:
- rabbitmq
- mongodb
links:
- rabbitmq
- mongodb
auth:
restart: unless-stopped
build:
context: ./python/auth
dockerfile: Dockerfile
object:
restart: unless-stopped
build:
context: ./python/object
dockerfile: Dockerfile
depends_on:
- postgres
links:
- postgres
stats:
restart: unless-stopped
build:
context: ./python/stats
dockerfile: Dockerfile
depends_on:
- data
links:
- data
users:
restart: unless-stopped
build:
context: ./python/users
dockerfile: Dockerfile
depends_on:
- mongodb
links:
- mongodb
companies:
restart: unless-stopped
build:
context: ./python/companies
dockerfile: Dockerfile
depends_on:
- mongodb
- postgres
links:
- mongodb
- postgres
receiver:
restart: unless-stopped
build:
context: ./python/receiver
dockerfile: Dockerfile
depends_on:
- rabbitmq
links:
- rabbitmq
frontend:
restart: unless-stopped
environment:
GOOGLE_API_MAPS_KEY: google_api_maps_key
build:
context: github.com/m4mcontroller/frontend
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt/live/meter4.me/fullchain.pem:/etc/ssl/fullchain.pem
- /etc/letsencrypt/live/meter4.me/privkey.pem:/etc/ssl/privkey.pem
- ~/frontend-landing/:/usr/html/landing