From 78c64c667f62bd954664354ff0adef44ed87cf6e Mon Sep 17 00:00:00 2001 From: Nobody <17956512+n0bodysec@users.noreply.github.com> Date: Thu, 22 Jun 2023 15:01:32 -0300 Subject: [PATCH] refactor(phpbb): update compose --- phpbb/docker-compose.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/phpbb/docker-compose.yml b/phpbb/docker-compose.yml index da0097b..1695de7 100644 --- a/phpbb/docker-compose.yml +++ b/phpbb/docker-compose.yml @@ -1,21 +1,36 @@ version: '3.9' services: + phpbb: + image: bitnami/phpbb + restart: unless-stopped + depends_on: [ 'mariadb' ] + expose: [ '8080', '8443' ] + ports: [ '8080:8080' ] + volumes: [ '${DOCKER_PHPBB_VOLUME}:/bitnami/phpbb' ] + env_file: [ '.env' ] + mariadb: image: mariadb restart: unless-stopped + user: mysql expose: [ '3306' ] - env_file: [ '.env' ] volumes: [ '${DOCKER_MARIADB_VOLUME}:/var/lib/mysql' ] + environment: + MARIADB_USER: ${MARIADB_USER} + MARIADB_PASSWORD: ${MARIADB_PASSWORD} + MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD} + MARIADB_DATABASE: ${MARIADB_DATABASE} - phpbb: - image: docker.io/bitnami/phpbb + phpmyadmin: + image: phpmyadmin restart: unless-stopped - expose: [ '8080', '8443' ] - ports: [ '8080:8080', '8443:8443' ] - env_file: [ '.env' ] - volumes: [ '${DOCKER_PHPBB_VOLUME}:/bitnami/phpbb' ] + profiles: [ 'admin' ] depends_on: [ 'mariadb' ] + expose: [ '80' ] + ports: [ '8081:80' ] + environment: + PMA_ARBITRARY: 1 volumes: mariadb_data: