Month: November 2024

Nginx PHP Bad Gateway Fix

User version: '3.3' services: nginx: image: nginx:latest container_name: other-nginx ports: – "6500:80" networks: – other-app-network volumes: – ./nginx:/etc/nginx/conf.d – ./applications/naa2023:/var/www/naa2023 depends_on: – php php: build: context: ./php container_name: other-php volumes: – ./applications/naa2023:/var/www/naa2023 expose: – "9095" working_dir: /var/www networks: – other-app-network otmysql: image: mysql:8.0 container_name: other-mysql environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_DATABASE: site_db MYSQL_USER: user MYSQL_PASSWORD: userpassword volumes: […]

Host conflict in Docker

User Creating other-mysql … error WARNING: Host is already in use by another container Assistant The error message you're seeing—`Host is already in use by another container`—indicates that Docker is trying to create a MySQL container, but the hostname or port you specified is already being used by another container. Here are some steps you […]

Docker Nginx PHP multiple sites

User Docker nginx, php 8 multiple site Assistant To set up a Docker environment with Nginx and PHP 8 to host multiple sites, you can create a setup with separate containers for Nginx, PHP-FPM, and MySQL (if needed). Each site can have its own configuration files and directories. Here's a step-by-step guide to achieving this: […]

Container Restart Troubleshooting

User admin1@PC-274:~/Docker-servers/dedicated-oliver$ docker exec -it oliver-node sh Error response from daemon: Container b7daa5ebc56e37f6dce133e12f92fff6d2f8c164ada2a12db8bdabdf1f3674fe is restarting, wait until the container is running Assistant This error indicates that the container is stuck in a restart loop. Docker automatically restarts containers if they exit due to an error (depending on the restart policy), but if the error persists, […]

Import DB in MySQL

User version: '3.3' services: nginx: image: nginx:latest container_name: oliver-nginx ports: – "3500:80" – "3510:82" networks: – oliver-app-network volumes: – ./nginx:/etc/nginx/conf.d – ./applications/all4cloud-wordpress-website:/var/www/all4cloud-wordpress-website – ./applications/wordpress-website-az-rosemeier:/var/www/wordpress-website-az-rosemeier depends_on: – php php: build: context: ./php container_name: oliver-php volumes: – ./applications/all4cloud-wordpress-website:/var/www/all4cloud-wordpress-website – ./applications/wordpress-website-az-rosemeier:/var/www/wordpress-website-az-rosemeier expose: – "9000" working_dir: /var/www/all4cloud-wordpress-website networks: – oliver-app-network olimysql: image: mysql:8.0 container_name: oliver-mysql environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_DATABASE: […]

CSS Max-Width Media Queries

User css media quiery max Assistant CSS media queries with the `max` keyword are commonly used to apply styles based on the maximum width of the viewport. This is helpful for creating responsive designs that adjust for different screen sizes, especially on smaller devices like tablets and smartphones. Here's the basic syntax: ### Media Query […]

Exclude JS in W3speedster

User How to put Divi/js/custom.js out javascript optimization in w3speedster Assistant To exclude `Divi/js/custom.js` from JavaScript optimization in **W3speedster**, you can follow these steps: ### Method 1: Use the "Exclude Scripts" option in W3speedster settings 1. **Log in to your WordPress admin dashboard**. 2. Go to **W3speedster > Settings**. 3. Find the section called **"Exclude […]

Rebuild Docker Image

User completely remove all conainers and re build image version: '3.3' services: nginx: image: nginx:latest container_name: oliver-nginx ports: – "3500:80" networks: – oliver-app-network volumes: – ./nginx:/etc/nginx/conf.d – ./applications/all4cloud-wordpress-website:/var/www/all4cloud-wordpress-website depends_on: – php php: build: context: ./php container_name: oliver-php volumes: – ./applications/all4cloud-wordpress-website:/var/www/all4cloud-wordpress-website expose: – "9000" working_dir: /var/www/all4cloud-wordpress-website networks: – oliver-app-network olimysql: image: mysql:8.0 container_name: oliver-mysql environment: MYSQL_ROOT_PASSWORD: […]

Docker Compose Syntax Error

User version: '3.3' services: nginx: image: nginx:latest container_name: oliver-nginx ports: – "3500:80" networks: – oliver-app-network volumes: – ./nginx:/etc/nginx/conf.d – ./nginx/nginx.conf:/etc/nginx/nginx.conf – ./applications/all4cloud-wordpress-website:/var/www/all4cloud-wordpress-website depends_on: – php restart: always php: build: context: ./php container_name: oliver-php volumes: – ./applications/all4cloud-wordpress-website:/var/www/all4cloud-wordpress-website expose: – "9000" working_dir: /var/www/all4cloud-wordpress-website networks: – oliver-app-network restart: on-failure olimysql: image: mysql:8.0 container_name: oliver-mysql environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_DATABASE: […]

Docker for PHP Development

User Why not move from OS dependent environment for development specially in PHP to Docker. I think this will be huge addon on our skills. We will then able to learn about various server like nginx, apache. You just need to create correct yml file. That's it Correct above sentences Assistant Why not switch from […]