-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (80 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
84 lines (80 loc) · 2 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
version: '3.9'
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: atlas_sqlserver
environment:
ACCEPT_EULA: 'Y'
MSSQL_SA_PASSWORD: ${SERVICE_PASSWORD_SQLSERVER:-StrongPassword!123}
MSSQL_PID: ${MSSQL_PID:-Evaluation}
expose:
- 1433
volumes:
- sqlserver_data:/var/opt/mssql
healthcheck:
test:
[
'CMD-SHELL',
"/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $$MSSQL_SA_PASSWORD -C -Q 'SELECT 1' || exit 1",
]
interval: 10s
timeout: 5s
retries: 10
solr:
build:
context: .
dockerfile: solr.Dockerfile
args:
HOST: sqlserver
USER: sa
PASSWORD: ${SERVICE_PASSWORD_SQLSERVER:-StrongPassword!123}
container_name: atlas_solr
depends_on:
sqlserver:
condition: service_healthy
environment:
SOLR_PORT: ${SOLR_PORT:-8983}
HOST: sqlserver
USER: sa
PASSWORD: ${SERVICE_PASSWORD_SQLSERVER:-StrongPassword!123}
expose:
- ${SOLR_PORT:-8983}
healthcheck:
test:
[
'CMD-SHELL',
'wget -qO- http://localhost:${SOLR_PORT:-8983}/solr/admin/ping | grep -q ''"status":"OK"''',
]
interval: 15s
timeout: 5s
retries: 10
start_period: 30s
web:
build:
context: .
dockerfile: Dockerfile
args:
HOST: sqlserver
USER: sa
PASSWORD: ${SERVICE_PASSWORD_SQLSERVER:-StrongPassword!123}
SOLR: http://solr:${SOLR_PORT:-8983}
container_name: atlas_web
depends_on:
- solr
- sqlserver
environment:
PORT: ${WEB_PORT:-3000}
SEED_DEMO: ${SEED_DEMO:-true}
expose:
- ${WEB_PORT:-3000}
ports:
- '${WEB_PORT:-3000}:${WEB_PORT:-3000}'
healthcheck:
test:
['CMD-SHELL', 'wget -qO- http://localhost:${WEB_PORT:-3000}/ || exit 1']
interval: 15s
timeout: 5s
retries: 10
start_period: 20s
volumes:
sqlserver_data: