Skip to content

Instantly share code, notes, and snippets.

@dammyammy
Last active July 23, 2021 01:13
Show Gist options
  • Save dammyammy/44e1dadbeda57f62d64ed9acca96bb5c to your computer and use it in GitHub Desktop.
Save dammyammy/44e1dadbeda57f62d64ed9acca96bb5c to your computer and use it in GitHub Desktop.
Setup Docker Containers for local development
docker network create --driver=bridge localnet
docker run --name metabase -p 3333:3000 --network localnet -v metabase_data:/metabase-data -e MB_DB_FILE=/metabase-data/metabase.db -e MUID=$UID -e MGID=$GID -d metabase/metabase
docker run --name mysql57 -p 3307:3306 --network localnet -v mysql_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=openseseme -d mysql/mysql-server:5.7
docker run --name mysql8 -p 3308:3306 --network localnet -v mysql8_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=openseseme -d mysql/mysql-server
docker run --name redis -p 6379:6379 --network localnet -v redis_data:/data -v redis_logs:/logs -d redis --appendonly yes
docker run --name mssql -p 1433:1433 --network localnet -v mssql_data:/var/opt/mssql/data -v mssql_log:/var/opt/mssql/log -v mssql_secrets:/var/opt/mssql/secrets -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=openseseme" -d mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04
docker run -ti --name prestashop --network localnet -v prestashop_data:/var/www/html -e DB_SERVER=mysql57 -e DB_PASSWD=openseseme -e DB_PORT=3306 -e PS_INSTALL_AUTO=1 -p 8989:80 -d prestashop/prestashop
docker run --name mailhog -p 1025:1025 -p 8025:8025 -d mailhog/mailhog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment