-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
110 lines (100 loc) · 2.13 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
107
108
109
110
version: "3.7"
services:
nats:
image: nats
ports:
- "8222:8222"
- "4222:4222"
- "6222:6222"
command: "--http_port 8222 --jetstream --name auto"
networks:
- nats
bid:
build:
context: ./src
dockerfile: services/bid/dockerfile
depends_on:
bid_db:
condition: service_healthy
environment:
- ELASTIC_APM_ENABLED=false
- BID_CONNECTION_STRING=Server=bid_db;Database=master;User=sa;Password=Your_password123;
networks:
- services
- bid
- nats
bid_db:
image: mcr.microsoft.com/mssql/server
hostname: bid_db
environment:
SA_PASSWORD: "Your_password123"
ACCEPT_EULA: "Y"
healthcheck:
interval: 10s
retries: 12
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "Your_password123" -Q "SELECT 1" || exit 1
networks:
- bid
image:
build:
context: ./src/services/image/
environment:
- ELASTIC_APM_ENABLED=false
networks:
- services
profile:
build:
context: ./src/services/profile/
environment:
- ELASTIC_APM_ENABLED=false
networks:
- services
pricing:
hostname: pricing
depends_on:
pricing_db:
condition: service_healthy
restart: always
build:
context: ./src/services/pricing/
environment:
- ELASTIC_APM_ENABLED=false
networks:
- services
- pricing
pricing_db:
image: mcr.microsoft.com/mssql/server
hostname: pricing_db
environment:
SA_PASSWORD: "Your_password123"
ACCEPT_EULA: "Y"
healthcheck:
interval: 10s
retries: 12
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "Your_password123" -Q "SELECT 1" || exit 1
networks:
- pricing
web_api:
build:
context: ./src
dockerfile: web/api/dockerfile
ports:
- "5000:80"
environment:
- ELASTIC_APM_ENABLED=false
networks:
- backend
- services
- nats
site:
build:
context: ./src/web/site/
ports:
- "5001:80"
networks:
backend:
services:
pricing:
bid:
nats:
name: nats