Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viebig/phalcon-docker-nginx
Phalcon 3, PHP7, Docker sample starter application
https://github.com/viebig/phalcon-docker-nginx
Last synced: about 2 months ago
JSON representation
Phalcon 3, PHP7, Docker sample starter application
- Host: GitHub
- URL: https://github.com/viebig/phalcon-docker-nginx
- Owner: viebig
- License: gpl-3.0
- Created: 2016-11-07T17:00:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-26T08:29:41.000Z (almost 8 years ago)
- Last Synced: 2024-08-04T01:05:59.894Z (5 months ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 25
- Watchers: 4
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-phalcon - phalcon-docker-nginx - Phalcon 3, PHP7, Docker sample starter application (Testing)
README
# Phalcon Docker Nginx starter app
Docker image based on:
- Ubuntu 16.04
- Phalcon 3
- PHP 7
- Nginx + PHP FPM
- Supervisord## Dependencies
Docker. For installation instructions check https://docs.docker.com/engine/installation/## Configuration
- To change the mapped port look in shell.bash run function.
- Default mapped port is 8888.
- Check /build directory for PHP and Nginx tweaking.## How to use the helper script
### Basic usage and demonstration
```bash
bash shell.bash local deploy
```
This will build the base image and run the container interactively.
Check http://localhost:8888### Enter the container console
```bash
bash shell.bash local shell
```### If you want do daemonize
```bash
bash shell.bash local deploy daemon
```
This will build the base image and run the container daemonized.
Check http://localhost:8888### Stop the container
```bash
bash shell.bash local stop
```###Start the container
```bash
bash shell.bash local start
```## Plus: Remote deploy script
You can edit user@host configuration in shell.bash script and use the same syntax to do quick remote deploys. Make sure you SSH is in remote host authorized_keys file.### Remote deploy example
```bash
bash shell.bash remote deploy daemon
```### View remote logs
```bash
bash shell.bash remote logs
```