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 :: when pushing tp github it request user and password 
Shell :: conda install pytorch 
Shell :: how to install flutter linux 
Shell :: bash how to delete ^M at the end of every line 
Shell :: set up ssh windows 10 
Shell :: bash_aliases fedora 
Shell :: kali tools 
Shell :: ubuntu install libgcc.i686 
Shell :: node global install 
Shell :: Error: `@cucumber/cucumber` module not resolvable. Must be locally installed. 
Shell :: powershell create service 
Shell :: install tomcat on mac brew 
Shell :: linux how to move file to another directory 
Shell :: bash create file specific size 
Shell :: bash check if string starts with substring 
Shell :: shell check if string contains substring 
Shell :: brew upgrade casks 
Shell :: how to install terraform on Ubuntu/Debian 
Shell :: commitlint, husky, commitzen 
Shell :: generate certificate 
Shell :: ssh transfer file 
Shell :: npm install webpack 
Shell :: open port 8080 fedora 
Shell :: uptime linux 
Shell :: curl send to ip 
Shell :: git exclude file 
Shell :: install steghide ubuntu 
Shell :: curl install docker-compose linux 
Shell :: git deinit repo 
Shell :: npm install without dev dependencies 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =