From 3ff3cb54494d1b771b49badf11c3b683e2fa8c2e Mon Sep 17 00:00:00 2001 From: Luke Else Date: Thu, 28 Nov 2024 15:14:14 +0000 Subject: [PATCH] Removed mysql from server hosted applications --- Database/docker-compose.yml | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/Database/docker-compose.yml b/Database/docker-compose.yml index 8f1ad87..e463c95 100644 --- a/Database/docker-compose.yml +++ b/Database/docker-compose.yml @@ -15,42 +15,6 @@ services: MONGO_INITDB_ROOT_PASSWORD: rootpassword restart: unless-stopped -#MySQL (3306) + phpMyAdmin () - mysql: - image: "mysql" - container_name: MySQL - volumes: - - ./mysql/:/var/lib/mysql - ports: - - "3306:3306" - environment: - MYSQL_ROOT_PASSWORD: rootpassword - MYSQL_DATABASE: test_db - restart: unless-stopped - - phpMyAdmin: - image: "phpmyadmin/phpmyadmin:latest" - container_name: phpMyAdmin - networks: - - proxy - depends_on: - - mysql - environment: - PMA_HOST: mysql - labels: - ## Expose phpMyAdmin Through Trefik ## - - "traefik.enable=true" # <== Enable traefik to proxy this container - - - "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https" - - "traefik.http.routers.phpmyadmin-insecure.middlewares=redirect-web-secure" - - "traefik.http.routers.phpmyadmin-insecure.rule=Host(`mysql.luke-else.co.uk`)" - - "traefik.http.routers.phpmyadmin-insecure.entrypoints=web" - - - "traefik.http.routers.phpmyadmin.rule=Host(`mysql.luke-else.co.uk`)" - - "traefik.http.routers.phpmyadmin.entrypoints=websecure" - - "traefik.http.routers.phpmyadmin.tls.certresolver=myresolver" - restart: unless-stopped - networks: proxy: external: true \ No newline at end of file