-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (73 loc) · 1.59 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
77
version: '3'
services:
# MSSQL docker
ekino-sql:
image: "mcr.microsoft.com/mssql/server:2019-latest"
restart: unless-stopped
environment:
- SA_PASSWORD=QWElkj132!
- ACCEPT_EULA=Y
- MSSQL_PID=Developer
ports:
- 1401:1433
expose:
- 1433
networks:
- ekinonet
# eKino api
ekino-api:
restart: unless-stopped
build:
context: .
environment:
- ConnectionStrings:DefaultConnection=Server=ekino-sql,1433;Database=eKino;User=sa;Password=QWElkj132!;ConnectRetryCount=0
- ASPNETCORE_ENVIRONMENT=Development
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_USERNAME=username
- RABBITMQ_PASSWORD=test
- RABBITMQ_VIRTUALHOST=/
ports:
- 5000:80
networks:
- ekinonet
links:
- ekino-sql
depends_on:
- ekino-sql
# RabbitMQ service
rabbitmq:
image: rabbitmq:3.13-management
container_name: rabbitmq
restart: unless-stopped
environment:
- RABBITMQ_DEFAULT_USER=username
- RABBITMQ_DEFAULT_PASS=test
ports:
- "5672:5672"
- "15672:15672"
expose:
- 5672
networks:
- ekinonet
# Email Subscriber Service
ekino-email-subscriber:
restart: on-failure
build:
context: .
dockerfile: Dockerfile.mailservice
environment:
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_USERNAME=username
- RABBITMQ_PASSWORD=test
- RABBITMQ_VIRTUALHOST=/
depends_on:
- rabbitmq
- ekino-sql
- ekino-api
networks:
- ekinonet
ports:
- 7011:80
networks:
ekinonet:
driver: bridge