firegate666 / docker-php7-mysql-postgres Goto Github PK
View Code? Open in Web Editor NEWVery simple docker setup to include in your project when you want to start using docker and databases
License: Apache License 2.0
Very simple docker setup to include in your project when you want to start using docker and databases
License: Apache License 2.0
How to use? =========== First add the project as a submodule: git submodule add https://github.com/firegate666/docker-php7-mysql-postgres.git ./docker git submodule init git submodule update --remote Afterwards enter the docker folder and enter PORT="8976" DOCROOT="web" docker-compose up --build to start the machine. PORT is the exposed port where you can access you application and DOCROOT points to /app/DOCROOT on the machine where /app is mounted to the parent of this docker folder. Now you can access the databases from within your project by talking to 'mysql' or 'postgres' as host. Try docker exec -it web_app_postgres psql -U myapp or docker exec -it web_app_mysql mysql --user=myapp --password --host=localhost myapp The internal php server fires up the application and makes it accesible on the docker ip on port "as configured above". If unsure you can use docker-machine to get the IP address. To enter you machine you can exec docker exec -it web_app bash then you are logged in as user. Your machines might have gotten a different name than this. You can always use "docker ps" to get a list of running containers and there name or specify a custom container name by setting "--name SOMETHING" when executing "docker-compose run". The folder above you docker folder is mounted to /app, the webroot points to /app/web, this should be configurable in the future. e.g.: http://192.168.64.4:8976/ TODO ==== - ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.