Skip to content

Instantly share code, notes, and snippets.

@rodurma
Created March 5, 2021 21:51
Show Gist options
  • Save rodurma/6cedf1cf139aa643d0dd216a240fca78 to your computer and use it in GitHub Desktop.
Save rodurma/6cedf1cf139aa643d0dd216a240fca78 to your computer and use it in GitHub Desktop.
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