-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
122 lines (116 loc) · 3.99 KB
/
compose.yml
File metadata and controls
122 lines (116 loc) · 3.99 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# For environment variables see the README.md
networks:
wordsmith:
driver: bridge
services:
wordsmith-api:
container_name: wordsmith-api
hostname: wordsmith-api
image: wordsmith/wordsmith-api:latest
build:
context: .
dockerfile: Wordsmith.API/Dockerfile
restart: unless-stopped
depends_on:
- wordsmith-identityserver
- wordsmith-db
- wordsmith-rabbitmq
ports:
- 6443:443 # HTTPS
environment:
- WORDSMITH_Connection__IdentityServer__Host=wordsmith-identityserver
- WORDSMITH_Connection__MySQL__Host=wordsmith-db
- WORDSMITH_Connection__MySQL__Port=3306
- WORDSMITH_Connection__MySQL__User=wordsmith_user
- WORDSMITH_Connection__MySQL__Password=wordsmith_user
- WORDSMITH_Connection__MySQL__Database=IB200121
- WORDSMITH_Connection__RabbitMQ__Host=wordsmith-rabbitmq
- WORDSMITH_Connection__RabbitMQ__User=wordsmith_user
- WORDSMITH_Connection__RabbitMQ__Password=wordsmith_user
- WORDSMITH_PayPalClientId=${WORDSMITH_PayPalClientId}
- WORDSMITH_PayPalClientSecret=${WORDSMITH_PayPalClientSecret}
- WORDSMITH_MerriamWebster__ApiKey=${WORDSMITH_MerriamWebster__ApiKey}
- WORDSMITH_GoogleCloud__ApiKey=${WORDSMITH_GoogleCloud__ApiKey}
env_file:
- .env
networks:
- wordsmith
volumes:
- ./docker_data/api_wwwroot:/app/wwwroot
- ./docker_data/api_book_storage:/app/books
- ./docker_data/api_data_protection_keys:/root/.aspnet/DataProtection-Keys
wordsmith-identityserver:
container_name: wordsmith-identityserver
hostname: wordsmith-identityserver
image: wordsmith/wordsmith-identityserver:latest
build:
context: .
dockerfile: Wordsmith.IdentityServer/Dockerfile
restart: unless-stopped
depends_on:
- wordsmith-db
- wordsmith-rabbitmq
ports:
- 7443:443 # HTTPS
environment:
- WORDSMITH_Connection__IdentityServer__Host=wordsmith-identityserver
- WORDSMITH_Connection__MySQL__Host=wordsmith-db
- WORDSMITH_Connection__MySQL__Port=3306
- WORDSMITH_Connection__MySQL__User=wordsmith_user
- WORDSMITH_Connection__MySQL__Password=wordsmith_user
- WORDSMITH_Connection__MySQL__Database=IB200121
- WORDSMITH_Connection__RabbitMQ__Host=wordsmith-rabbitmq
- WORDSMITH_Connection__RabbitMQ__User=wordsmith_user
- WORDSMITH_Connection__RabbitMQ__Password=wordsmith_user
networks:
- wordsmith
volumes:
- ./docker_data/identity_server_data_protection_keys:/root/.aspnet/DataProtection-Keys
wordsmith-communicationsrelay:
container_name: wordsmith-communicationsrelay
hostname: wordsmith-communicationsrelay
image: wordsmith/wordsmith-communicationsrelay:latest
build:
context: .
dockerfile: Wordsmith.CommunicationsRelay/Dockerfile
restart: unless-stopped
depends_on:
- wordsmith-rabbitmq
environment:
- WORDSMITH_Connection__RabbitMQ__Host=wordsmith-rabbitmq
- WORDSMITH_Connection__RabbitMQ__User=wordsmith_user
- WORDSMITH_Connection__RabbitMQ__Password=wordsmith_user
networks:
- wordsmith
wordsmith-db:
container_name: wordsmith-db
hostname: wordsmith-db
image: mysql:8.0
restart: unless-stopped
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=wordsmith_root_password
- MYSQL_USER=wordsmith_user
- MYSQL_PASSWORD=wordsmith_user
- MYSQL_DATABASE=IB200121
networks:
- wordsmith
volumes:
- ./docker_data/mysql_data:/var/lib/mysql
wordsmith-rabbitmq:
container_name: wordsmith-rabbitmq
hostname: wordsmith-rabbitmq
image: rabbitmq:3-management-alpine
restart: unless-stopped
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=wordsmith_user
- RABBITMQ_DEFAULT_PASS=wordsmith_user
networks:
- wordsmith
volumes:
- ./docker_data/rabbitmq_data:/var/lib/rabbitmq
- ./docker_data/rabbitmq_logs:/var/log/rabbitmq