Skip to content

Commit ea90922

Browse files
committed
fix: permission to write folder of mysql
I didn't found the real reason but this is the problem: https://stackoverflow.com/questions/65345516/docker-permission-denied-to-local-mysql-volume Signed-off-by: Vitor Mattos <[email protected]>
1 parent a3e32a8 commit ea90922

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ services:
1313
command: postgres -c log_statement=all
1414
mysql:
1515
image: mysql
16-
cap_add:
17-
- SYS_NICE # CAP_SYS_NICE
1816
volumes:
19-
- ./.docker/config/mysql:/etc/mysql/conf.d
20-
- ./volumes/mysql/dump:/docker-entrypoint-initdb.d
21-
- ./volumes/mysql/data:/var/lib/mysql
17+
- mysql-init:/docker-entrypoint-initdb.d
18+
- mysql-data:/var/lib/mysql
2219
ports:
2320
- 127.0.0.1:3306:3306
2421
restart: unless-stopped
@@ -78,3 +75,6 @@ services:
7875
- 127.0.0.1:${MAILHOG_PORT:-8025}:8025
7976
redis:
8077
image: redis
78+
volumes:
79+
mysql-init:
80+
mysql-data:

nextcloud

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit d237fd0e78af8bbff51f2802efd4db1d88457579

0 commit comments

Comments
 (0)