forked from uid4oe/microservices-go-grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (79 loc) · 1.53 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
version: "3.7"
services:
bff-service:
container_name: "bff-service_go"
image: uid4oe/go-ms-bff:latest
networks:
- uid4oe
ports:
- 8080:8080
command: /main
env_file:
- .env
user-service:
container_name: "user-service_go"
image: uid4oe/go-ms-user:latest
networks:
- uid4oe
ports:
- 50051:50051
command: /main
restart: always
env_file:
- .env
advice-service:
container_name: "advice-service_go"
image: uid4oe/go-ms-advice:latest
networks:
- uid4oe
ports:
- 50052:50052
command: /main
restart: always
env_file:
- .env
ui:
container_name: "ui"
image: uid4oe/ms-grpc-ui:latest
networks:
- uid4oe
ports:
- 3000:80
mongodb:
container_name: "mongodb"
image: mongo:latest
hostname: mongodb
restart: always
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- mongodb:/data/db
- mongoconfig:/data/configdb
env_file:
- .env
networks:
- uid4oe
ports:
- 27017:27017
postgres:
container_name: "postgres"
image: postgres:latest
hostname: postgres
user: postgres
restart: always
volumes:
- postgres:/var/lib/postgresql/data
- ./advice.sql:/docker-entrypoint-initdb.d/create_tables.sql
env_file:
- .env
networks:
- uid4oe
command: 'postgres'
ports:
- '5432:5432'
volumes:
mongodb:
mongoconfig:
postgres:
networks:
uid4oe:
external: true