Created
March 5, 2021 21:51
-
-
Save rodurma/6cedf1cf139aa643d0dd216a240fca78 to your computer and use it in GitHub Desktop.
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: '3.2' | |
services: | |
mysql: | |
image: mysql:8.0 | |
container_name: mysql | |
hostname: mysql | |
command: --default-authentication-plugin=mysql_native_password | |
environment: | |
- MYSQL_DATABASE=opencart | |
- MYSQL_ROOT_PASSWORD=change_to_secure_password | |
restart: always | |
volumes: | |
- mysql_data:/var/lib/mysql | |
opencart: | |
image: aamservices/opencart:latest | |
container_name: opencart | |
hostname: opencart | |
restart: always | |
ports: | |
- '80:80' | |
- '443:443' | |
volumes: | |
- opencart_html:/var/www | |
depends_on: | |
- mysql | |
volumes: | |
mysql_data: | |
driver: local | |
opencart_html: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment