Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to setup wordpress in docker

version: "3.9"
    
services:
  db:
    image: mysql:5.7
    volumes:
      - db_data:/var/lib/mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: somewordpress
      MYSQL_DATABASE: wordpress
      MYSQL_USER: wordpress
      MYSQL_PASSWORD: wordpress
    
  wordpress:
    depends_on:
      - db
    image: wordpress:latest
    volumes:
      - wordpress_data:/var/www/html
    ports:
      - "8000:80"
    restart: always
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: wordpress
      WORDPRESS_DB_PASSWORD: wordpress
      WORDPRESS_DB_NAME: wordpress
volumes:
  db_data: {}
  wordpress_data: {}
Comment

how to create docker for wordpress container

docker wordpress
Comment

PREVIOUS NEXT
Code Example
Shell :: kill pid 
Shell :: pip install pytorch windows 
Shell :: docker compose down single container 
Shell :: stop docker image 
Shell :: git remove last pushed commit 
Shell :: alias bash laravel 
Shell :: kali tools subsystem 
Shell :: python not found. install python-is-python3 
Shell :: install discord 
Shell :: how to add a gif to a readme 
Shell :: linux remove root access 
Shell :: gitignore for eclipse 
Shell :: google font npm install 
Shell :: how to install mongoose globally 
Shell :: bash cut delimiter last field 
Shell :: how to WSL2 
Shell :: Create a desktop file ubuntu 
Shell :: how to end a task in command prompt 
Shell :: sudo apt-get ignore errors 
Shell :: generate certificate ssl 
Shell :: adobe acrobat reader for linux download 
Shell :: env variable for access key and secret key in terraform 
Shell :: find exec rm 
Shell :: replace delimiter for new line 
Shell :: show drives linux 
Shell :: ubuntu server lamp installation 
Shell :: git check if stash exists 
Shell :: install docker compose ubuntu 
Shell :: update arch repo using reflector 
Shell :: docker pull image 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =