Last active
August 14, 2021 19:40
-
-
Save ridvanaltun/51bddab43d55480da9b1083dc9d0b546 to your computer and use it in GitHub Desktop.
OpenCart Docker Compose
This file contains hidden or 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: | |
| image: docker.io/bitnami/mariadb:10.3 | |
| container_name: opencart-db | |
| volumes: | |
| - 'mariadb_data:/bitnami/mariadb' | |
| env_file: | |
| - production.env | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin | |
| container_name: opencart-pma | |
| ports: | |
| - '81:80' | |
| env_file: | |
| - production.env | |
| depends_on: | |
| - mariadb | |
| opencart: | |
| image: docker.io/bitnami/opencart:3 | |
| container_name: opencart | |
| ports: | |
| - '80:8080' | |
| - '443:8443' | |
| volumes: | |
| - 'opencart_data:/bitnami/opencart' | |
| - 'opencart_storage_data:/bitnami/opencart_storage/' | |
| env_file: | |
| - production.env | |
| depends_on: | |
| - mariadb | |
| volumes: | |
| mariadb_data: | |
| driver: local | |
| opencart_data: | |
| driver: local | |
| opencart_storage_data: | |
| driver: local |
This file contains hidden or 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
| # MariaDB and Opencart | |
| ALLOW_EMPTY_PASSWORD=yes | |
| # MariaDB | |
| MARIADB_USER=bn_opencart | |
| MARIADB_DATABASE=bitnami_opencart | |
| #MARIADB_ROOT_PASSWORD=secret | |
| # Phpmyadmin | |
| #MYSQL_DATABASE=bitnami_opencart | |
| #MYSQL_ROOT_PASSWORD=root | |
| #MYSQL_USER=bn_opencart | |
| #MYSQL_PASSWORD=user | |
| # adds "server" input field to phpmyadmin login page | |
| PMA_ARBITRARY=1 | |
| PMA_HOST=mariadb | |
| # Opencart | |
| OPENCART_HOST=localhost | |
| OPENCART_DATABASE_HOST=mariadb | |
| OPENCART_DATABASE_PORT_NUMBER=3306 | |
| OPENCART_DATABASE_USER=bn_opencart | |
| OPENCART_DATABASE_NAME=bitnami_opencart | |
| # Port to bind by Apache for HTTP. Default: 8080 | |
| #APACHE_HTTP_PORT_NUMBER=8080 | |
| # Port to bind by Apache for HTTPS. Default: 8443 | |
| #APACHE_HTTPS_PORT_NUMBER=8081 | |
| # OpenCart application username. Default: user | |
| OPENCART_USERNAME=admin | |
| # OpenCart application password. Default: bitnami | |
| OPENCART_PASSWORD=password | |
| # OpenCart application email. Default: [email protected] | |
| #[email protected] | |
| # OpenCart server hostname/address. | |
| #OPENCART_HOST= | |
| # Whether to use HTTPS by default. Default: no. | |
| #OPENCART_ENABLE_HTTPS=no | |
| # Port to used by OpenCart to generate URLs and links when accessing using HTTP. Default 80. | |
| #OPENCART_EXTERNAL_HTTP_PORT_NUMBER=80 | |
| # Port to used by OpenCart to generate URLs and links when accessing using HTTPS. Default 443. | |
| #OPENCART_EXTERNAL_HTTPS_PORT_NUMBER=443 | |
| # Whether to perform initial bootstrapping for the application. Default: no | |
| #OPENCART_SKIP_BOOTSTRAP=no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment