Skip to content

Commit

Permalink
Fix mysql problem (#2078)
Browse files Browse the repository at this point in the history
- change database image, from Mysql 5.7 to MariaDB 11.4 LTS
- remove version tag it's deprecated

 WARN[0000] /root/src/ravada/dockerfy/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it
 to avoid potential confusion
  • Loading branch information
fv3rdugo committed Jan 9, 2025
1 parent a360ccb commit a80d379
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions dockerfy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "2.2"
services:
ravada-mysql:
container_name: ravada-mysql
Expand All @@ -7,10 +6,15 @@ services:
- "/opt/ravada/log:/var/log/mysql"
networks:
- ravada_network
image: mysql:5.7
image: mariadb:11.4
env_file: .env
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
labels:
"docker_compose_diagram.icon": "mysql"
"docker_compose_diagram.description": "main database"



ravada-front:
container_name: ravada-front
Expand All @@ -29,9 +33,13 @@ services:
#If you want to local build
build: dockers/front/.
restart: unless-stopped

depends_on:
- ravada-mysql
# labels:
# "docker_compose_diagram.icon": "mysql"
# "docker_compose_diagram.description": "front"



ravada-back:
container_name: ravada-back
Expand All @@ -56,9 +64,11 @@ services:
build: dockers/back/.
privileged: true
restart: unless-stopped

depends_on:
- ravada-mysql
# labels:
# "docker_compose_diagram.icon": "mysql"
# "docker_compose_diagram.description": "backend"

volumes:
sshkeys:
Expand Down

0 comments on commit a80d379

Please sign in to comment.