forked from Yan316/example-product-service
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (60 loc) · 1.48 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
version: '3'
services:
mysql:
image: mysql:5.7.25
tmpfs: /var/lib/mysql:rw
command: [
'mysqld',
'--innodb-buffer-pool-size=20M',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
'--default-time-zone=+8:00'
]
environment:
- "MYSQL_DATABASE=example_db"
- "MYSQL_USER=mysql"
- "MYSQL_PASSWORD=password"
- "MYSQL_ROOT_PASSWORD=abcd1234"
ports:
- "3306:3306"
# nvdmirror:
# image: sspringett/nvdmirror
# ports:
# - 8380:80
# volumes:
# - ./.nvdmirror:/usr/local/apache2/htdocs
# sonarqube:
# image: sonarqube
# ports:
# - "9000:9000"
# networks:
# - sonarnet
# environment:
# - sonar.jdbc.url=jdbc:postgresql://sonar-db:5432/sonar
# volumes:
# - sonarqube_conf:/opt/sonarqube/conf
# - sonarqube_data:/opt/sonarqube/data
# - sonarqube_extensions:/opt/sonarqube/extensions
#
# sonar-db:
# image: postgres
# networks:
# - sonarnet
# environment:
# - POSTGRES_USER=sonar
# - POSTGRES_PASSWORD=sonar
# volumes:
# - postgresql:/var/lib/postgresql
# # This needs explicit mapping due to https://github.com/docker-library/postgres/blob/4e48e3228a30763913ece952c611e5e9b95c8759/Dockerfile.template#L52
# - postgresql_data:/var/lib/postgresql/data
#
#networks:
# sonarnet:
# driver: bridge
#
#volumes:
# sonarqube_conf:
# sonarqube_data:
# sonarqube_extensions:
# postgresql:
# postgresql_data: