Skip to content

Commit 7227fae

Browse files
authored
Move simple docker deployment to top
1 parent 473219a commit 7227fae

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

deployment/docker/index.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ You have working Docker and Docker Compose installation.
1111

1212
It is assumed your current user is in group `docker`. If you are not in `docker` group, you have to prefix all docker command with `sudo` or run it with elevated privilege (root).
1313

14+
## Deploy Fano CLI-generated Project with Docker
15+
16+
[Fano CLI](/scaffolding-with-fano-cli/) since `v1.13.0` generates `docker-compose.yaml` file during creation of [CGI](/scaffolding-with-fano-cli/creating-project/#scaffolding-cgi-project), [FastCGI](/scaffolding-with-fano-cli/creating-project/#scaffolding-fcgid-project), [SCGI](/scaffolding-with-fano-cli/creating-project/#scaffolding-scgi-project) and [uwsgi](/scaffolding-with-fano-cli/creating-project/#scaffolding-uwsgi-project) project.
17+
18+
Which means you can skip steps explained in sections below and just compile application and then run with `docker-compose up`.
19+
```
20+
$ fanocli --project-fcgi=my-fcgi.fano
21+
$ cd my-fcgi.fano
22+
$ fanocli --controller=Home --route=/
23+
$ ./build.sh
24+
$ docker-compose up
25+
```
26+
1427
## Deploy Fano CGI Application with Docker
1528

1629
### Create Dockerfile
@@ -319,19 +332,6 @@ This is similar to FastCGI reverse proxy configuration above, except `httpd_dock
319332

320333
This is similar to FastCGI reverse proxy configuration above, except `httpd_dockerfile` loads `mod_proxy_uwsgi` and `vhost.example` contains `uwsgi://fano:7704` line.
321334

322-
## Deploy Fano CLI-generated Project with Docker
323-
324-
[Fano CLI](/scaffolding-with-fano-cli/) since `v1.13.0` generates `docker-compose.yaml` file during creation of [CGI](/scaffolding-with-fano-cli/creating-project/#scaffolding-cgi-project), [FastCGI](/scaffolding-with-fano-cli/creating-project/#scaffolding-fcgid-project), [SCGI](/scaffolding-with-fano-cli/creating-project/#scaffolding-scgi-project) and [uwsgi](/scaffolding-with-fano-cli/creating-project/#scaffolding-uwsgi-project) project.
325-
326-
Which means you can skip steps above and just compile application and then run with `docker-compose up`.
327-
```
328-
$ fanocli --project-fcgi=my-fcgi.fano
329-
$ cd my-fcgi.fano
330-
$ fanocli --controller=Home --route=/
331-
$ ./build.sh
332-
$ docker-compose up
333-
```
334-
335335
## Explore more
336336

337337
- [Scaffolding with Fano CLI](/scaffolding-with-fano-cli/)

0 commit comments

Comments
 (0)