The list of 21 onboard games is absolutely fabulous!
Continue reading Nintendo Officially Announces The SNES Classic Edition
The list of 21 onboard games is absolutely fabulous!
Continue reading Nintendo Officially Announces The SNES Classic Edition
We will be using the official #Wordpress image from Docker HUB But first let’s create a file uploads.ini to avoid issues later on while uploading plugins in wordpress.
file_uploads = On memory_limit = 256M upload_max_filesize = 256M post_max_size = 300M max_execution_time = 600
Create a new file docker-compose.yml, adapt values to your liking, especially all passwords and username. Note that #MYSQL and #Worpress data are persisted OUTSIDE of container.
version: '2' services: wordpress: depends_on: - db image: wordpress:latest volumes: - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini - ./file-wordpress:/var/www/html ports: - 80:80 - 443:443 restart: always environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_TABLE_PREFIX: abcd db: image: mysql:5.7 volumes: - ./db-wordpress:/var/lib/mysql restart: always expose: - "3306" environment: MYSQL_ROOT_PASSWORD: wordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress
The docker-compose up command aggregates the output of each container. It Builds, (re)creates, starts, and attaches to containers for a service. When the command exits, all containers are stopped. Running docker-compose up -d starts the containers in the background and leaves them running. To start WordPress in the background
docker-compose up -d
To find the name of the container
docker ps -a
or
docker-compose ps
To read the logs file
docker logs wordpress docker logs db
To go inside the container (remember all changes in there are lost at container restart)
docker exec -it wordpress bash
To delete all volume
docker-compose rm -v