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