Last active
July 24, 2023 03:38
-
-
Save vihoangson/6d268a1699c2cb2db8a7d57cfdc30afb to your computer and use it in GitHub Desktop.
Cấu hình docker-compose.yml cài đặt 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
version: '2' | |
services: | |
mariadb: | |
restart: always | |
image: docker.io/bitnami/mariadb:10.6 | |
environment: | |
# ALLOW_EMPTY_PASSWORD is recommended only for development. | |
- ALLOW_EMPTY_PASSWORD=yes | |
- MARIADB_USER=bn_phpbb | |
- MARIADB_DATABASE=bitnami_phpbb | |
volumes: | |
- 'mariadb_data:/bitnami/mariadb' | |
phpbb: | |
image: docker.io/bitnami/phpbb:3 | |
restart: always | |
ports: | |
- '80:8080' | |
- '443:8443' | |
environment: | |
- PHPBB_DATABASE_HOST=mariadb | |
- PHPBB_DATABASE_PORT_NUMBER=3306 | |
- PHPBB_DATABASE_USER=bn_phpbb | |
- PHPBB_DATABASE_NAME=bitnami_phpbb | |
# ALLOW_EMPTY_PASSWORD is recommended only for development. | |
- ALLOW_EMPTY_PASSWORD=yes | |
volumes: | |
- 'phpbb_data:/bitnami/phpbb' | |
depends_on: | |
- mariadb | |
volumes: | |
mariadb_data: | |
driver: local | |
phpbb_data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment