-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (54 loc) · 1.38 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
services:
rabbitmq:
image: rabbitmq:management
environment:
RABBITMQ_DEFAULT_USER: ${APP_USERNAME}
RABBITMQ_DEFAULT_PASS: ${APP_PASSWORD}
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
ports:
- 5672:5672
- 15672:15672
restart: always
volumes:
- .containers/brokers/rabbitmq/data/:/var/lib/rabbitmq
- .containers/brokers/rabbitmq/log/:/var/log/rabbitmq
redis:
image: redis
ports:
- "6379:6379"
volumes:
- .containers/cache/redis/data:/data
- .containers/cache/redis/config/redis.conf:/usr/local/etc/redis/redis.conf
sqlserver:
image: mcr.microsoft.com/mssql/server
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: ${APP_PASSWORD}
ports:
- "1433:1433"
restart: always
volumes:
- .containers/ddbb/mssqlserver/data:/var/opt/mssql/data
- .containers/ddbb/mssqlserver/logs:/var/opt/mssql/log
webapi:
build:
context: ./src
dockerfile: Dockerfile
depends_on:
rabbitmq:
condition: service_healthy
redis:
condition: service_started
sqlserver:
condition: service_started
environment:
ASPNETCORE_HTTP_PORTS: 8000
DATABASE: ${APP_DATABASE}
USERNAME: ${APP_USERNAME}
PASSWORD: ${APP_PASSWORD}
ports:
- "8000:8000"