Skip to content

Instantly share code, notes, and snippets.

@gbitdev
Last active October 14, 2018 21:27
Show Gist options
  • Select an option

  • Save gbitdev/814572de248f5afbca6dff80267d28f6 to your computer and use it in GitHub Desktop.

Select an option

Save gbitdev/814572de248f5afbca6dff80267d28f6 to your computer and use it in GitHub Desktop.
PWD stack
version: '3'
services:
mariadb:
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_magento
- MARIADB_PASSWORD=magento_db_password
- MARIADB_DATABASE=bitnami_magento
volumes:
- 'mariadb_data:/bitnami'
magento:
image: 'bitnami/magento:latest'
labels:
kompose.service.type: nodeport
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- MAGENTO_DATABASE_USER=bn_magento
- MAGENTO_DATABASE_PASSWORD=magento_db_password
- MAGENTO_DATABASE_NAME=bitnami_magento
ports:
- '80:80'
- '443:443'
volumes:
- 'magento_data:/bitnami'
depends_on:
- mariadb
volumes:
mariadb_data:
driver: local
magento_data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment