-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
106 lines (101 loc) · 3.18 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
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
#
# MIT License
#
# Copyright (c) 2021 NestedApi Project
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
version: "3"
services:
# Azure SQL Database container
azuresqledge:
cap_add:
- SYS_PTRACE
container_name: azuresqledge
restart: always
environment:
- ACCEPT_EULA=1
- MSSQL_SA_PASSWORD=YnZekurEp4SZW0rd
image: mcr.microsoft.com/azure-sql-edge
networks:
- internal-network
expose:
- 1433/tcp
user: mssql
# Bus Message Service
rabbitmq:
command:
- rabbitmq-server
container_name: rabbitmq
restart: always
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=YnZekurEp4SZW0rd
- RABBITMQ_DEFAULT_VHOST=nested
expose:
- 5672/tcp
image: rabbitmq:alpine
networks:
- internal-network
# NGINX Server as a API Gateway
api-gateway:
container_name: api-gateway
restart: always
image: nginx:stable-alpine
environment:
- NGINX_PORT=8000
volumes:
- ./config/nginx/default.conf:/etc/nginx/conf.d/default.conf:Z
networks:
- internal-network
ports:
- 8000:8000/tcp
# Specific Module Service - Users
users-service:
container_name: users-service
restart: always
environment:
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:sqlserver://azuresqledge:1433;databaseName=tempdb
- QUARKUS_DATASOURCE_USERNAME=sa
- QUARKUS_DATASOURCE_PASSWORD=YnZekurEp4SZW0rd
- RABBITMQ_AMQP_URI=amqp://root:YnZekurEp4SZW0rd@rabbitmq:5672/nested
build: ./packages/users
networks:
- internal-network
expose:
- 8080/tcp
user: daemon
# Specific Module Service - Authentication
auth-service:
container_name: auth-service
restart: always
environment:
- QUARKUS_DATASOURCE_USERNAME=sa
- QUARKUS_DATASOURCE_PASSWORD=YnZekurEp4SZW0rd
- RABBITMQ_AMQP_URI=amqp://root:YnZekurEp4SZW0rd@rabbitmq:5672/nested
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:sqlserver://azuresqledge:1433;databaseName=tempdb
build: ./packages/authentication
networks:
- internal-network
expose:
- 8080/tcp
user: daemon
networks:
internal-network:
external: false