Skip to content

Commit 855149d

Browse files
committed
Add a Docker compose file for tests.
This collects all the common settings in a single file, enabling a container for testing to be brought up and down easily.
1 parent 10b392e commit 855149d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/compose.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: mysqlconnector
2+
3+
services:
4+
mysql:
5+
image: mysql:8.0
6+
ports:
7+
- "3306:3306"
8+
volumes:
9+
- type: tmpfs
10+
target: /var/lib/mysql
11+
- type: tmpfs
12+
target: /tmp
13+
environment:
14+
MYSQL_ROOT_PASSWORD: pass
15+
command: --max-allowed-packet=96M --character-set-server=utf8mb4 --log-bin-trust-function-creators=1 --local-infile=1 --max-connections=250

0 commit comments

Comments
 (0)