https://github.com/phpmv/ubiquity-docker
Docker-compose structure for php and Ubiquity framework
https://github.com/phpmv/ubiquity-docker
docker docker-compose php ubiquity-framework
Last synced: 11 months ago
JSON representation
Docker-compose structure for php and Ubiquity framework
- Host: GitHub
- URL: https://github.com/phpmv/ubiquity-docker
- Owner: phpMv
- Created: 2022-04-28T12:09:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-19T07:02:34.000Z (over 3 years ago)
- Last Synced: 2025-01-13T16:25:56.470Z (about 1 year ago)
- Topics: docker, docker-compose, php, ubiquity-framework
- Language: Dockerfile
- Homepage: https://ubiquity.kobject.net
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ubiquity-docker
Docker-compose structure for php and Ubiquity framework
## Prerequisites
You will need the following things properly installed on your computer.
* Docker `>= 20.10`
* Docker-compose `>=1.29`
## Installation
```
git clone https://github.com/phpMv/ubiquity-docker
cd ubiquity-docker
```
copy env-example to .env:
```
cp env-example .env
```
## Configuration
### General
- PHP, Mysql, Apache and NginX versions are defined in `.env` file.
### Apache
- Apache virtualhost config file is located in `apache/demo.apache.conf`
- The default root of the web server is accessible locally from the `projects/www/public` folder
### Mysql
- You can place your database creation scripts in the `mysql/sql` folder.
- They will be automatically executed at the first build.
- The created databases are accessible on the local computer from the `mysql/db` folder.
## Running
Running Apache (with mysql, php, phpmyadmin):
```
docker-compose up -d apache
```
Running with a rebuild:
```
docker-compose up -d --build apache
```
Opening a bash console:
```
docker exec -ti ubiquity-docker_php_1 /bin/bash
```
Stopping
```
docker-compose down
```
### Frameworks
Creating a new Ubiquity project:
```
docker-compose exec php composer create-project phpmv/ubiquity-project www
```
Running a composer command in www folder:
```
docker-compose exec php/www composer update
```
## Accessing
Http service (Apache or NginX):
```
http://127.0.0.1:8080
```
PhpMyAdmin:
```
http://127.0.0.1:8099
```