This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
114 lines (114 loc) · 2.39 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
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
networks:
localnet:
driver: bridge
services:
MicroStarter.AngularSsrClient:
build:
context: src/Clients/MicroStarter.AngularSsrClient
dockerfile: Dockerfile
image: microstarter.angularssrclient
networks:
- localnet
ports:
- 4200:4200
MicroStarter.Api:
build:
context: src/ApiServices/MicroStarter.Api/
dockerfile: Dockerfile
depends_on:
- postgre_name
- MicroStarterEventBus
image: microstarter.api
links:
- postgre_name
- MicroStarterEventBus
networks:
- localnet
ports:
- 8000:8000
restart: on-failure
MicroStarter.Identity:
build:
context: src/IdentityServices/MicroStarter.Identity/
dockerfile: Dockerfile
depends_on:
- postgre_name
- MicroStarterEventBus
image: microstarter.identity
links:
- postgre_name
- MicroStarterEventBus
networks:
- localnet
ports:
- 5000:5000
restart: on-failure
MicroStarterEventBus:
container_name: rabbitmqc
environment:
RABBITMQ_DEFAULT_PASS: machine
RABBITMQ_DEFAULT_USER: doom
healthcheck:
interval: 30s
retries: 5
test: ["CMD", "curl", "-f", "http://localhost:15672"]
timeout: 10s
image: rabbitmq:3-management-alpine
networks:
- localnet
ports:
- 15672:15672
- 5672:5672
- 5671:5671
volumes:
- rabbit-volume:/var/lib/rabbitmq
NginxServer:
build:
context: NginxServer/
dockerfile: Dockerfile
container_name: nginxserver
depends_on:
- MicroStarter.Api
- MicroStarter.AngularSsrClient
- MicroStarter.Identity
image: nginxhttp
links:
- MicroStarter.Api
- MicroStarter.AngularSsrClient
- MicroStarter.Identity
networks:
- localnet
ports:
- 80:80
- 443:443
restart: on-failure
my_redis:
build:
context: my_redis/
dockerfile: Dockerfile
container_name: my_redis
depends_on: []
image: my_redis
links: []
networks:
- localnet
ports:
- 6379:6379
restart: on-failure
postgre_name:
container_name: my_postgre_container
environment:
POSTGRES_DB: dev
POSTGRES_PASSWORD: machine
POSTGRES_USER: doom
image: postgres
networks:
- localnet
ports:
- 5432:5432
volumes:
- ./postgres-data:/var/lib/postgresql/data
version: '3'
volumes:
postgres-volume: {}
rabbit-volume: {}