-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (70 loc) · 1.45 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
services:
postgres:
image: postgres:12
environment:
POSTGRES_DB: myproject
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
networks:
- microservices-net
discovery-service:
image: discovery-service:latest
build: ./discovery-service
ports:
- "8761:8761"
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- microservices-net
auth-server:
image: auth-server:latest
build:
context: ./auth-server
ports:
- "8081:8081"
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- postgres
- discovery-service
networks:
- microservices-net
email-service:
image: email-service:latest
build:
context: ./email-service
ports:
- "8083:8083"
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- postgres
- discovery-service
- auth-server
networks:
- microservices-net
gateway-service:
image: gateway-service:latest
build: ./gateway-service
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- discovery-service
networks:
- microservices-net
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
environment:
MH_STORAGE: "maildir"
networks:
- microservices-net
networks:
microservices-net:
driver: bridge