Skip to content

Commit 23cd8a0

Browse files
committed
WIP: add MySQL to docker setup
1 parent f21878f commit 23cd8a0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: .docker/php-config/11-mysql-socket.ini

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
; pdo_mysql.default_socket = /var/run/mysqld/mysql.sock'

Diff for: compose.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ services:
88
context: .docker/
99
volumes:
1010
- ".:/var/www/html:rw,z"
11+
- "mysql_socket:/var/run/mysqld/mysqld.sock:rw"
1112

1213
# memcached:
1314
# image: memcached:1.6.13-alpine3.15
15+
mysql:
16+
image: mysql:8.3
17+
profiles:
18+
- full
19+
volumes:
20+
- "mysql_socket:/var/run/mysqld/mysqld.sock:rw"
21+
volumes:
22+
mysql_socket:

0 commit comments

Comments
 (0)