-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
46 lines (46 loc) · 1.29 KB
/
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
services:
db:
image: postgres:16.4-alpine
container_name: netstone.api-postgres
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=netstone-api
- POSTGRES_USER=netstone-api
- POSTGRES_PASSWORD=${DB_PASSWORD}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d netstone-api -U netstone-api" ]
interval: 5s
timeout: 4s
retries: 5
api:
image: netstone.api
container_name: netstone.api
restart: unless-stopped
build:
context: .
dockerfile: NetStone.Api/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT:
AUTH_AUDIENCE: netstone.api
AUTH_AUTHORITY: https://auth.tawmy.dev/realms/xiv
CONNECTION_STRING: Host=db;Database=netstone-api;Username=netstone-api;Password=${DB_PASSWORD}
RABBITMQ_HOST: "rabbitmq://queue"
RABBITMQ_USERNAME:
RABBITMQ_PASSWORD:
queue:
image: rabbitmq:4-management
container_name: netstone.api-queue
hostname: netstone-api-queue
restart: unless-stopped
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 5s
retries: 3
environment:
RABBITMQ_DEFAULT_USER:
RABBITMQ_DEFAULT_PASS:
volumes:
- rmq_data:/var/lib/rabbitmq