From eff5be49c42588593f33e96db13ee49c93f6b32f Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Tue, 31 Dec 2024 10:46:14 +0100 Subject: [PATCH] Edited: docker-compose.yaml --- docker-compose.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 30c43a4..afcb025 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,7 @@ services: mariadb: image: mariadb:11.4 # LTS at 25. 12. 2025 - restart: always + restart: on-failure:2 environment: MARIADB_ROOT_PASSWORD: root ports: @@ -10,7 +10,7 @@ services: phpmyadmin: image: phpmyadmin - restart: always + restart: on-failure:2 ports: - 8080:80 environment: @@ -21,10 +21,11 @@ services: build: context: . dockerfile: Dockerfile - #volumes: - # - .:/var/www/html + volumes: + - .:/var/www/html ports: - 8000:80 depends_on: - mariadb + restart: on-failure:2 profiles: ["prod"]