From 631840277d042669a42ee9145015e33581afbe4b Mon Sep 17 00:00:00 2001 From: Raine Date: Mon, 1 Jan 2024 19:37:27 +0100 Subject: [PATCH] fix: mysql change --- .../apoc/docker-compose.d/docker-compose.snipeit.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/servers/apoc/docker-compose.d/docker-compose.snipeit.yml b/servers/apoc/docker-compose.d/docker-compose.snipeit.yml index 8b9d87c..73bc63a 100644 --- a/servers/apoc/docker-compose.d/docker-compose.snipeit.yml +++ b/servers/apoc/docker-compose.d/docker-compose.snipeit.yml @@ -4,9 +4,8 @@ version: '2.2' services: snipeit: image: snipe/snipe-it - links: - - snipeit-db:mysql - environment: + environment: + MYSQL_PORT_3306_TCP_ADDR: "snipeit-db" MYSQL_ROOT_PASSWORD: "root" MYSQL_DATABASE: "snipeit" MYSQL_USER: "snipeit" @@ -24,6 +23,7 @@ services: - /srv/snipeit/data:/var/lib/snipeit networks: - proxy + - internal snipeit-db: image: mysql:5.6 @@ -33,4 +33,6 @@ services: MYSQL_USER: "snipeit" MYSQL_PASSWORD: "snipeit" volumes: - - /srv/snipeit/other/db:/var/lib/mysql \ No newline at end of file + - /srv/snipeit/other/db:/var/lib/mysql + networks: + - internal \ No newline at end of file