-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.09 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
version: "3.8"
services:
nginx:
restart: always
image: nginx:alpine
ports:
- 8089:80
volumes:
- ./src/News.Publishing.Api/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- backend
backend:
build:
dockerfile: ./src/News.Publishing.Api/Dockerfile
context: .
args:
project_name: News.Publishing
run_codegen: true
deploy:
replicas: 1
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
restart: always
rabbitmq:
image: "masstransit/rabbitmq:3.13"
ports:
- "15672:15672"
- "5672:5672"
- "5671:5671"
healthcheck:
timeout: 5s
interval: 5s
retries: 10
test: ["CMD", "rabbitmqctl", "status"]
postgres:
image: postgres:15.1-alpine
container_name: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=Password12!
ports:
- "5432:5432"