version: '2'
services:
mariadb:
image: 'bitnami/mariadb:10.3'
environment:
- MARIADB_USER=bn_opencart
- MARIADB_DATABASE=bitnami_opencart
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- 'mariadb_data:/bitnami'
opencart:
image: 'bitnami/opencart:3'
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- OPENCART_DATABASE_USER=bn_opencart
- OPENCART_DATABASE_NAME=bitnami_opencart
- OPENCART_HOST=localhost
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '80:80'
- '443:443'
volumes:
- 'opencart_data:/bitnami'
depends_on:
- mariadb
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 82:80
environment:
PMA_HOST: mariadb
volumes:
mariadb_data:
driver: local
opencart_data:
driver: local