-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.dev.yml
142 lines (132 loc) · 2.73 KB
/
compose.dev.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: "3.1"
services:
auth:
build: ./auth
environment:
JWT_SECRET: "YOUR_SECRET"
JWT_REFRESH_SECRET: "YOUR_REFRESH_SECRET"
RABBIT_URI: "amqp://some-rabbit"
PORT: 4000
MONGO_URI: mongodb://mongo-auth/auth
SEQ_URL: "http://seq:5341"
restart: unless-stopped
ports:
- 3000:4000
links:
- mongo-auth
- some-rabbit
depends_on:
- some-rabbit
- mongo-auth
- seq
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--spider",
"http://localhost:4000/api/auth",
]
interval: 30s
timeout: 10s
retries: 30
mongo-auth:
image: mongo:latest
ports:
- 27017
expiration:
build: ./expiration
environment:
REDIS_HOST: some-redis
RABBIT_URL: amqp://some-rabbit
SEQ_URL: "http://seq:5341"
depends_on:
- some-redis
- some-rabbit
restart: unless-stopped
dotnet:
build: ./dotnet
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: "http://*:5000"
SEQ_URL: "http://seq:5341"
ports:
- 5000
restart: unless-stopped
depends_on:
- seq
client:
build: ./client
ports:
- 3000
environment:
GATEWAY_URL: http://nginx:80
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 5
depends_on:
auth:
condition: service_healthy
nginx:
image: nginx
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
- 443:443
depends_on:
client:
condition: service_started
auth:
condition: service_healthy
restart: unless-stopped
logger:
build: ./logger
environment:
RABBIT_URL: amqp://some-rabbit
depends_on:
- some-redis
- some-rabbit
- auth
- expiration
restart: unless-stopped
some-rabbit:
image: rabbitmq:3-management
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 30s
timeout: 10s
ports:
- 15672:15672
- 5672
some-redis:
image: redis
ports:
- 6379
redis-ui:
image: patrikx3/p3x-redis-ui:latest
ports:
- 8081:7843
environment:
- REDIS_HOST=some-redis
- REDIS_PORT=6379
- REDIS_PASSWORD=
- REDIS_DB=0
- HTTP_USER=admin
- HTTP_PASSWORD=admin
volumes:
- ./p3x-redis-ui-settings:/settings
seq:
image: datalust/seq:latest
ports:
- 5341:5341
environment:
- ACCEPT_EULA=Y