forked from awslabs/aws-mysql-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (56 loc) · 1.82 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
version: '3.8'
services:
first-mysql:
image: mysql:8.0.21
container_name: first-mysql
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
command:
- --local_infile=1
- --max_allowed_packet=40M
- --max-connections=2048
- --secure-file-priv=/var/lib/mysql
- --ssl-key=/home/certdir/server-key.pem
- --ssl-cert=/home/certdir/server-cert.pem
- --ssl-ca=/home/certdir/ca-cert.pem
- --plugin_dir=/home/plugin_dir
volumes:
- ../src/test/config/ssl-test-certs/:/home/certdir
- ./plugins:/home/plugin_dir
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
security_opt:
- seccomp:unconfined
second-mysql:
image: mysql:8.0.21
container_name: second-mysql
restart: always
ports:
- 3307:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
command:
- --log-error-verbosity=4
- --local_infile=1
- --max_allowed_packet=40M
- --max-connections=2048
- --secure-file-priv=/var/lib/mysql
- --ssl-key=/home/certdir/server-key.pem
- --ssl-cert=/home/certdir/server-cert.pem
- --ssl-ca=/home/certdir/ca-cert.pem
- --plugin_dir=/home/plugin_dir
- --default-authentication-plugin=sha256_password
- --sha256_password_public_key_path=/home/certdir/mykey.pub
- --caching_sha2_password_public_key_path=/home/certdir/mykey.pub
- --sha256_password_private_key_path=/home/certdir/mykey.pem
- --caching_sha2_password_private_key_path=/home/certdir/mykey.pem
volumes:
- ../src/test/config/ssl-test-certs/:/home/certdir
- ./plugins:/home/plugin_dir
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
security_opt:
- seccomp:unconfined