Skip to content

Commit

Permalink
fix: permission to write folder of mysql
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
vitormattos committed Jul 18, 2024
1 parent a3e32a8 commit ea90922
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ services:
command: postgres -c log_statement=all
mysql:
image: mysql
cap_add:
- SYS_NICE # CAP_SYS_NICE
volumes:
- ./.docker/config/mysql:/etc/mysql/conf.d
- ./volumes/mysql/dump:/docker-entrypoint-initdb.d
- ./volumes/mysql/data:/var/lib/mysql
- mysql-init:/docker-entrypoint-initdb.d
- mysql-data:/var/lib/mysql
ports:
- 127.0.0.1:3306:3306
restart: unless-stopped
Expand Down Expand Up @@ -78,3 +75,6 @@ services:
- 127.0.0.1:${MAILHOG_PORT:-8025}:8025
redis:
image: redis
volumes:
mysql-init:
mysql-data:
1 change: 1 addition & 0 deletions nextcloud
Submodule nextcloud added at d237fd

0 comments on commit ea90922

Please sign in to comment.