-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(phpbb): add phpBB compose scripts
- Loading branch information
Showing
5 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.data/ | ||
.env | ||
docker-compose.override.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |