From 65fb68d68ea383e0900f3361c42a3e4994b18491 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Fri, 17 Apr 2026 12:38:14 +0200 Subject: [PATCH] Aggiustamenti docker compose --- docker-compose.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e6cd7f7..0ba547f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,15 +4,22 @@ services: ports: - 8069:80 environment: - DB_HOST: mariadb + DB_HOST: db DB_USERNAME: techstore DB_PASSWORD: changeme DB_DATABASE: TechStore - mariadb: + volumes: + - ./images:/var/www/html/img + restart: unless-stopped + depends_on: + - db + db: image: mariadb - restart: always + restart: unless-stopped environment: MARIADB_ROOT_PASSWORD: changemeplease MARIADB_USER: techstore MARIADB_PASSWORD: changeme - MARIADB_DATABASE: TechStore \ No newline at end of file + MARIADB_DATABASE: TechStore + volumes: + - ./db:/var/lib/mysql \ No newline at end of file