Skip to content

woosungchoi/docker-gnuboard

Repository files navigation

docker-gnuboard

These are some reasons why use this Docker Compose in your Gnuboard production environment.

☝️ 2 command to install

⚡ Performance Optimized

🔒 SSL auto-renewed

🆕 Latest docker images and Gnuboard

🚧 Phpmyadmin for database administration

🚢 Portainer for docker container management

Stack

  • Ubuntu 20.04 LTS or Centos 8
  • Gnuboard latest(including rewrite configuration)
  • Php7.4 latest docker image(alpine)
  • MariaDB latest docker image
  • Redis latest docker image(alpine)
  • Nginx latest docker image(alpine)
  • Certbot latest docker image
  • Phpmyadmin latest docker image(fpm-alpine)
  • Portainer latest docker image
  • Docker
  • Docker-compose

How to use this source ?

Make sure that your domain and www.domain and pma.domain and port.domain are pointing to your server IP.

Type Name Content
A domain.com 123.123.123.123
A pma 123.123.123.123
A port 123.123.123.123
A www 123.123.123.123

Open 80,443 port for connect.

Copy this command below and run it inside your new server.

For Ubuntu 20.04 LTS users

sudo apt update -y && sudo apt upgrade -y && sudo apt install curl git cron -y && sudo apt autoremove -y
curl -o dc https://raw.githubusercontent.com/woosungchoi/docker-gnuboard/master/dc && bash dc setup && rm -f dc

For Centos 8 users

sudo yum -y update && sudo yum install -y curl git crontabs
curl -o dcc https://raw.githubusercontent.com/woosungchoi/docker-gnuboard/master/dcc && bash dcc setup && rm -f dcc

How do I use this source locally and non SSL on dev environments?

For Ubuntu 20.04 LTS users

sudo apt update -y && sudo apt upgrade -y && sudo apt install curl git -y && sudo apt autoremove -y
curl -o dcl https://raw.githubusercontent.com/woosungchoi/docker-gnuboard/master/dcl && bash dcl setup && rm -f dcl

For Centos 8 users

sudo yum -y update && sudo yum install -y curl git
curl -o dccl https://raw.githubusercontent.com/woosungchoi/docker-gnuboard/master/dccl && bash dccl setup && rm -f dccl

For Windows 10 WSL2 Ubuntu 20.04 LTS users

Install WSL2 Ubuntu 20.04 LTS and docker

https://www.wsgvet.com/ubuntu/160 , https://www.wsgvet.com/ubuntu/180

sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
curl -o dcwl https://raw.githubusercontent.com/woosungchoi/docker-gnuboard/master/dcwl && bash dcwl setup && rm -f dcwl

Gnuboard Install Configuration

MySQL information

Host : db

User : YOUR DATABASE USERNAME

Password : YOUR DATABASE PASSWORD

DB : YOUR DATABASE NAME

URLs

Gnuboard : https://yourdomain.com

Phpmyadmin : https://pma.yourdomain.com

Portainer : https://port.yourdomain.com

How to setup automatic execution of upgrade to latest version of Docker image

First, change the /your/path/to/gnuboard/ part of the docker_upgrade.sh file to suit your environment.

Then, make this file executable.

chmod a+x docker_upgrade.sh

And put it in crontab. Change the /your/path/to/gnuboard/ part of the content below.

echo "30 12 * * * /your/path/to/gnuboard/docker_upgrade.sh >> /var/log/docker_upgrade_cron.log 2>&1" >> mycron && sudo crontab mycron && rm mycron

Commands

Commands Description
./dc start Start your containers
./dc stop Stop all containers
./dc update Get latest docker images update and restart containers

About

Clean Gnuboard CMS + Docker (development & production)

Resources

Stars

Watchers

Forks