Skip to content

Commit

Permalink
feat(phpbb): add phpBB compose scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
n0bodysec committed Feb 18, 2023
1 parent b2f4c05 commit d3a2aa6
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
23 changes: 23 additions & 0 deletions phpbb/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# phpBB
# Reference: https://github.com/bitnami/containers/tree/main/bitnami/phpbb#environment-variables
PHPBB_DATABASE_HOST=mariadb
PHPBB_DATABASE_PORT_NUMBER=3306
PHPBB_DATABASE_NAME=phpbb
PHPBB_DATABASE_USER=user
PHPBB_DATABASE_PASSWORD=password
# ---
PHPBB_HOST=localhost
PHPBB_USERNAME=root
PHPBB_PASSWORD=toor
PHPBB_EMAIL=[email protected]

# MariaDB
# Reference: https://github.com/docker-library/docs/blob/master/mariadb/README.md#environment-variables
MARIADB_USER=user
MARIADB_PASSWORD=password
MARIADB_ROOT_PASSWORD=s0m3s3cr3tp4ssw0rd
MARIADB_DATABASE=phpbb

# Docker
DOCKER_MARIADB_VOLUME=./.data/mariadb
DOCKER_PHPBB_VOLUME=./.data/phpbb
3 changes: 3 additions & 0 deletions phpbb/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.data/
.env
docker-compose.override.yml
24 changes: 24 additions & 0 deletions phpbb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# phpBB

This docker image contains a Plug-and-Play installation of the phpBB forum software, including a version-checking proxy for fail-safe work.

With this image, you can quickly deploy a ready-to-use forum without any effort.

## 🃏 Features

- Exclusive use of public images (therefore, always updated).
- Simple configuration through env vars.
- [Version-Checking](https://version.phpbb.com) Proxy.

## 🚀 Deploy

1. Create a `docker-compose.override.yml` file and edit it to suit your needs (***optional***).
2. Copy `.env.example` to `.env` and edit it accordingly.
3. Run `docker compose up -d`.

> If you want to use the version-checking proxy, please run `docker compose -f docker-compose.yml -f versioncheck.yml up -d` instead.
## 📜 Notes

- A proxy is being used for version checking because, for some reason, it fails using docker.
- Remember to check [Bitnami's Best Maintenance Practices](https://github.com/bitnami/containers/tree/main/bitnami/phpbb#maintenance) to update phpBB to the latest version.
22 changes: 22 additions & 0 deletions phpbb/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.9'

services:
mariadb:
image: mariadb
restart: unless-stopped
expose: [ '3306' ]
env_file: [ '.env' ]
volumes: [ '${DOCKER_MARIADB_VOLUME}:/var/lib/mysql' ]

phpbb:
image: docker.io/bitnami/phpbb
restart: unless-stopped
expose: [ '8080', '8443' ]
ports: [ '8080:8080', '8443:8443' ]
env_file: [ '.env' ]
volumes: [ '${DOCKER_PHPBB_VOLUME}:/bitnami/phpbb' ]
depends_on: [ 'mariadb' ]

volumes:
mariadb_data:
phpbb_data:
13 changes: 13 additions & 0 deletions phpbb/versioncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.9'

services:
phpbb:
depends_on: [ 'versioncheck' ]
links: [ 'versioncheck:version.phpbb.com' ]
# extra_hosts: [ 'version.phpbb.com:127.0.0.1' ]

versioncheck:
image: node:alpine
restart: unless-stopped
expose: [ '80' ]
command: npx --yes http-server -p 80 --proxy https://version.phpbb.com

0 comments on commit d3a2aa6

Please sign in to comment.