Skip to content

Commit e202b50

Browse files
authored
Update README.md
1 parent 0a61957 commit e202b50

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# codeigniter4-docker
1+
## Docker Image for CodeIgniter4 development
22
[![Docker Build Status](https://img.shields.io/docker/cloud/build/atsanna/codeigniter4.svg?style=flat-square)](https://hub.docker.com/r/atsanna/codeigniter4/)
33

44
This repository provides you a development environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires Docker and Docker Compose.
@@ -7,6 +7,8 @@ Basic example to create your container (tested on Ubuntu 18.04 - Docker version
77

88
**NOTE: This package is under early development and is not ready for prime-time.**
99

10+
## Build Image
11+
1012
create this structure:
1113
```
1214
codeigniter/
@@ -29,3 +31,31 @@ start the container:
2931
```
3032
docker container run --publish 80:80 --name ci4 -v /localfolder:/var/www/html codeginiter:4.0.2
3133
```
34+
35+
## Installation
36+
37+
1. Install [docker](https://docs.docker.com/engine/installation/) and [docker-compose](https://docs.docker.com/compose/install/) ;
38+
39+
2. Copy `docker-compose.yml` file to your project root path, and edit it according to your needs ;
40+
41+
3. From your project directory, start up your application by running:
42+
43+
```sh
44+
docker-compose up -d
45+
```
46+
47+
4. From your project directory, stop your application by running:
48+
49+
```sh
50+
docker-compose down --volumes
51+
```
52+
53+
## Contributing
54+
55+
Contributions are welcome!
56+
Leave an issue on Github, or create a Pull Request.
57+
58+
59+
## Licence
60+
61+
This work is under [MIT](LICENCE) licence.

0 commit comments

Comments
 (0)