mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
update phpbb
This commit is contained in:
parent
0c67930d57
commit
c1f613d722
@ -9,14 +9,34 @@ This docker image support mysqli/postgres/sqlite3.
|
||||
If you choose sqlite3, please use `/var/www/store/phpbb.db` as dbpath.
|
||||
And it has no volumes, please use phpBB control panel to backup database.
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
phpbb:
|
||||
image: vimagick/phpbb
|
||||
ports:
|
||||
- "8000:80"
|
||||
volumes:
|
||||
- ./data:/var/www/store
|
||||
restart: always
|
||||
```
|
||||
|
||||
# up and running
|
||||
|
||||
```bash
|
||||
# run container
|
||||
$ docker run -d --restart always --name phpbb -p 8000:80 vimagick/phpbb
|
||||
# create volume
|
||||
$ mkdir -m 777 data
|
||||
|
||||
# setup website
|
||||
# run container
|
||||
$ docker-compose up -d
|
||||
|
||||
# setup forum
|
||||
$ firefox http://localhost:8000/install
|
||||
|
||||
# view database
|
||||
$ sqlite3 data/phpbb.db
|
||||
>>> .help
|
||||
>>> .quit
|
||||
```
|
||||
|
||||
[1]: https://www.phpbb.com/
|
||||
|
Loading…
Reference in New Issue
Block a user