Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mparker17/fig-amp_stack
A fig configuration that sets up an Apache-PHP-MySQL stack using Docker.
https://github.com/mparker17/fig-amp_stack
Last synced: 4 days ago
JSON representation
A fig configuration that sets up an Apache-PHP-MySQL stack using Docker.
- Host: GitHub
- URL: https://github.com/mparker17/fig-amp_stack
- Owner: mparker17
- License: gpl-2.0
- Created: 2014-12-30T13:51:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-05T12:59:18.000Z (almost 10 years ago)
- Last Synced: 2023-03-30T05:26:44.670Z (over 1 year ago)
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fig-amp_stack
A fig configuration that sets up an Apache-PHP-MySQL stack using Docker.
Note this is just a proof-of-concept. You very likely don't want to use this in a production environment.
# Install
Before you start, you need to know whether you have to run Docker commands using `sudo` or not. If so, prefix all `fig` and `docker` commands with `sudo` below.
1. [Install docker](https://docs.docker.com/installation/).
* Test it works with `docker run hello-world`
2. [Install fig](http://www.fig.sh/install.html).
* Test it works with `fig --version`
3. Put a PHP web application inside the webroot folder (e.g.: [Drupal](https://drupal.org/project/drupal)).
* If the web application requires write-access to a certain file or folder, you'll have to set permissions with `chmod g+w $path ; chown -R :33 $path`.
* If the web application has trouble writing to the database, you'll have to set permissions with `chown -R :999 db`.# Usage
1. From a terminal, run:
fig up
You can now run the PHP web application by visiting http://localhost/