-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (73 loc) · 1.66 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
version: "3.3"
volumes:
produtosdata:
sonar_logs:
sonar_data:
sonar_ext:
pg_pg:
pg_pgdata:
networks:
frontend:
backend:
sonarnet:
services:
mysql:
image: "mysql:latest"
command: --default-authentication-plugin=mysql_native_password
volumes:
- produtosdata:/var/lib/mysql
networks:
- backend
environment:
# bind-address: "0.0.0.0"
MYSQL_DATABASE: "FTStore"
MYSQL_USER: "root"
MYSQL_ROOT_PASSWORD: "1701"
ports:
- 3306:3306
ftstore:
build:
context: .
dockerfile: ./.Docker/Dockerfile
networks:
- backend
- frontend
ports:
- 5000:80
environment:
FTSTORE_DBHOST: mysql
ENV ASPNETCORE_ENVIRONMENT: Production
depends_on:
- mysql
sonarqube:
image: sonarqube:community
container_name: sonarqube
hostname: sonarqube
expose:
- 9000
user: "999"
ports:
- 9000:9000
networks:
- sonarnet
environment:
- sonar.jdbc.username=sonar
- sonar.jdbc.password=admin
- sonar.jdbc.url=jdbc:postgresql://db/sonar
- sonar.search.javaAdditionalOpts=-Dbootstrap.system_call_filter=false
volumes:
- sonar_logs:/opt/sonarqube/logs
- sonar_data:/opt/sonarqube/data
- sonar_ext:/opt/sonarqube/extensions
db:
image: postgres:12.0
container_name: sonarqube-pg
hostname: sonarqube-pg
networks:
- sonarnet
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=admin
volumes:
- pg_pg:/var/lib/postgresql
- pg_pgdata:/var/lib/postgresql/data