-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-example.yml
More file actions
103 lines (103 loc) · 2.43 KB
/
docker-compose-example.yml
File metadata and controls
103 lines (103 loc) · 2.43 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
version: "3.2"
services:
consul:
command: -server -bootstrap -rejoin
image: progrium/consul:latest
micro:
command: --registry=consul --registry_address=consul:8500 api --handler=http --namespace senonerk.sup.api
image: microhq/micro:latest
links:
- consul
ports:
- "8080:8080"
auth_api:
build: ./api/auth
command: --registry=consul --registry_address=consul:8500
links:
- consul
- auth_srv
auth_srv:
build: ./srv/auth
command: --registry=consul --registry_address=consul:8500
links:
- consul
- mongodb
environment:
DB_HOST: mongodb
DB_NAME: auth
DB_USER: root
DB_PASSWORD: secret
JWT_SECRET: supersecret
PASSWORD_HMAC_SECRET: ultrasecret
mongodb:
image: mongo
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: secret
volumes:
- "mongodb:/data/db"
profile_api:
build: ./api/profile
command: --registry=consul --registry_address=consul:8500
links:
- consul
- profile_srv
profile_srv:
build: ./srv/profile
command: --registry=consul --registry_address=consul:8500
links:
- consul
- profiledb
environment:
DB_URI: "host=profiledb port=5432 dbname=profile user=postgres sslmode=disable"
profiledb:
image: postgres
ports:
- "5432:5432"
volumes:
- "profiledb:/var/lib/postgresql/data"
notificator_srv:
build: ./srv/notificator
command: --registry=consul --registry_address=consul:8500
links:
- consul
environment:
EMAIL_SERVER: smtp.gmail.com
EMAIL_PORT: 587
EMAIL_USER: "*******"
EMAIL_PASSWORD: "***********"
chat_api:
build: ./api/chat
command: --registry=consul --registry_address=consul:8500
links:
- consul
- chat_srv
chat_srv:
build: ./srv/chat
command: --registry=consul --registry_address=consul:8500
links:
- consul
- mongodb
environment:
DB_HOST: mongodb
DB_NAME: chat
DB_USER: root
DB_PASSWORD: secret
search_api:
build: ./api/search
command: --registry=consul --registry_address=consul:8500
links:
- consul
- profile_srv
explorer:
command: --registry=consul --registry_address=consul:8500 web
image: microhq/micro:latest
links:
- consul
ports:
- "8082:8082"
volumes:
mongodb:
profiledb: