-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 971 Bytes
/
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
version: '1.0'
services:
sonarqube:
image: sonarqube:lts-community
container_name: sonarqube
depends_on:
mssql:
condition: service_healthy
ports:
- 9000:9000
volumes:
- ./data:/opt/sonarqube/data
- ./logs:/opt/sonarqube/logs
- ./extensions:/opt/sonarqube/extensions
env_file:
- .env
networks:
- sonarqube
restart: unless-stopped
mssql:
image: mcr.microsoft.com/mssql/server
container_name: sonarqube-data
environment:
- ACCEPT_EULA=Y
- MSSQL_PID=Express
- MSSQL_SA_PASSWORD=Password4mssql
volumes:
- ./sql/:/usr/src/sql/
env_file:
- .env
command: ['/bin/bash', '-c', '/usr/src/sql/initialize.sh']
healthcheck:
test: ['CMD-SHELL', '/usr/src/sql/health.sh']
interval: 10s
timeout: 10s
retries: 3
networks:
- sonarqube
restart: unless-stopped
networks:
sonarqube:
name: sonarqube