-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (69 loc) · 1.33 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
version: '3.7'
services:
ms-advice:
container_name: 'advice-service'
build:
context: ./advice
networks:
- microservices
ports:
- 50000:50000
restart: always
env_file:
- ./advice/.env
depends_on:
- 'postgres'
ms-user:
container_name: 'user-service'
build:
context: ./user
networks:
- microservices
ports:
- 50051:50051
restart: always
env_file:
- ./user/.env
depends_on:
- 'mongodb'
extra_hosts:
- "host.docker.internal:host-gateway"
postgres:
container_name: 'postgres-ms-advice'
image: postgres:14-alpine
restart: always
env_file:
- ./advice/.env
volumes:
- postgres:/var/lib/postgresql/data
- ./advice/pg.sql:/docker-entrypoint-initdb.d/create_tables.sql
networks:
- microservices
bff-service:
container_name: 'ms-gateway'
build:
context: ./gateway
restart: always
env_file:
- ./gateway/.env
networks:
- microservices
depends_on:
- 'ms-advice'
- 'ms-user'
ports:
- 8080:8080
ui:
container_name: 'ms-ui'
image: uid4oe/ms-grpc-ui:latest
ports:
- 3000:80
depends_on:
- 'bff-service'
volumes:
mongodb:
mongoconfig:
postgres:
networks:
microservices:
external: true