-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·76 lines (71 loc) · 2.01 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
name: motorent
services:
api:
image: app
build:
context: .
dockerfile: src/Motorent.Api/Dockerfile
container_name: motorent-api
ports:
- 8000:8080
- 8001:8081
depends_on:
db:
condition: service_healthy
queue:
condition: service_healthy
environment:
- ASPNETCORE_URLS=http://+:8080;https://+:8081
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_Kestrel__Certificates__Default__Password=password
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/motorent.pfx
- ConnectionStrings__DefaultConnection=Host=db;Database=motorent;Username=root;Password=password
volumes:
- ~/.aspnet/https:/https:ro
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
- ~/.aws:/root/.aws:ro
worker-notifications:
image: app
build:
context: .
dockerfile: src/Motorent.NotificationsWorker/Dockerfile
container_name: motorent-worker-notifications
depends_on:
queue:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Host=db;Database=motorent;Username=root;Password=password
db:
image: postgres
container_name: motorent-postgres
healthcheck:
test: [ "CMD", "pg_isready", "-U", "root" ]
interval: 10s
timeout: 30s
retries: 5
ports:
- "8002:5432"
environment:
- POSTGRES_DB=motorent
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
volumes:
- .data:/var/lib/postgresql/data
queue:
image: rabbitmq:management
container_name: motorent-rabbitmq
hostname: motorent-queue
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 10s
timeout: 30s
retries: 5
ports:
- "8003:15672"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
volumes:
- .rabbitmq/data:/var/lib/rabbitmq
- .rabbitmq/logs:/var/log/rabbitmq