Skip to content

Mario-Duarte/docker-smart-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Smart Sandbox

A Docker container meant to create a sandbox environment to run/test small code snippets based on the Smart Sandbox repo that I created and decided to share with everyone.

Hope it helps someone out there!

This container uses:

  • php 7.4-apache
  • mariadb
  • adminer

Feel free to modify and adapt the Dockerfile in ./docker/image/Dockerfile to your needs but adding and removing extensions and apps.

Currently the Dockerfile will install, wget git zip unzip openssl zlib1g-dev libcurl3-dev libzip-dev libpng-dev libxml2-dev libmcrypt-dev as well as mysqli pdo_mysql json curl gd zip pcntl exif intl php extensions.

It also creates self-sign certificates that are saved onto /var/www/conf/ folder to be used by the server, you may see a warning page when visiting the site with https, if so have a look at this article on how to bypass the error on chrome. I would recommend replacing these certificates with ones from letsencrypt.

To instal just run docker-compose build && docker-compose up.


Database

The default user for the database is root and the password is root, you can change this in the ./docker-compose.yml file.

To connect to the database you can visit http://localhost:8080/ from your browser to access adminer, or using a software like sequel pro or similar, using the standard port 3306.

If this port is already in use by another service on you machine you can change this in the ./docker-compose.yml file.


Other utilities

This container also has composer, NodeJS latest stable version and git so that you can run all of your utilities in the container.

Want to help make this container better?

Feel free to get in touch to make suggestions on how I can improve this container to a wider audience, or to report mistakes and issues.

About

A Docker container meant to create a sandbox environment to run/test small code snippets based on the Smart Sandbox repo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published