~busykoala/wp_container_template

91335872f3f14aa5425d98ddb1d043d30c7dc6c0 — Matthias Osswald 2 years ago
First working solution.
4 files changed, 45 insertions(+), 0 deletions(-)

A .env.example
A .gitignore
A README.md
A docker-compose.yml
A  => .env.example +3 -0
@@ 1,3 @@
DB_ROOT_PW=example_root_password
DB_USER=example_user_name
DB_USER_PW=example_user_password

A  => .gitignore +1 -0
@@ 1,1 @@
.env

A  => README.md +26 -0
@@ 1,26 @@
# Wordpress fast setup

This is a setup to just start another wordpress page in an instance.

## General Info

The application is exposed using the port 8020 by default. It can be
changed in `docker-compose.yml`.

## Installtion & Start

- Add an `.env` file (there is an example provided).
- Start with `docker-compose up -d`.

## Docker Compose Commands

- Start application: `docker-compose up -d`
- Stop application: `docker-compose kill`
- Delete volume: `docker-compose down --volumes`

## Update Container

One method to update often seen is doing following steps:

- `docker-compose pull && docker-compose up -d`
- `docker image prune`

A  => docker-compose.yml +15 -0
@@ 1,15 @@
version: '2'

services:

  wordpress:
    image: wordpress:latest
    ports:
      - 8080:80
    environment:
      WORDPRESS_DB_PASSWORD: wfehxi148s

  mysql:
    image: mariadb:latest
    environment:
      MYSQL_ROOT_PASSWORD: wfehxi148s