You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# setting up authentication credentials for magento
14
+
COPY ./auth.json var/composer_home/auth.json
15
+
16
+
RUN sed -i -e "s/user_placeholder/$magento_username/g" var/composer_home/auth.json && sed -i -e "s/pass_placeholder/$magento_password/g" var/composer_home/auth.json
17
+
18
+
RUN chown -R www-data:www-data /var/www/html/var/composer_home
19
+
20
+
# We change to the www-data user who is the magento file system owner.
21
+
# Visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/file-sys-perms-over.html for more information
Contained within this repo, is a dockerfile and a docker-compose file to quickly spin up a magento2 and mysql container with the paystack plugin installed.
71
+
72
+
### Prerequisites
73
+
- Install [Docker](https://www.docker.com/)
74
+
75
+
### Quick Steps
76
+
- Create a `.env` file off the `.env.sample` in the root directory. Replace the `*******` with the right values
77
+
- Run `docker-compose up` from the root directory to build and start the mysql and magento2 containers.
78
+
- Visit `localhost:8000` on your browser to access the magento store. For the admin backend, visit `localhost:8000/<MAGENTO_BACKEND_FRONTNAME>` where `MAGENTO_BACKEND_FRONTNAME` is the value you specified in your `.env` file
79
+
- Run `docker-compose down` from the root directory to stop the containers.
0 commit comments