Updated examples for v5.3.5.

This commit is contained in:
nmihajlovski 2017-06-07 17:25:56 +02:00
parent efadb81229
commit 6d64475701
1 changed files with 7 additions and 6 deletions

View File

@ -34,6 +34,7 @@ docker run -it --rm \
--link some-mysql:mysql \ --link some-mysql:mysql \
%%REPO%% \ %%REPO%% \
profiles=mysql \ profiles=mysql \
jdbc.host=mysql \
jdbc.password=db-pass \ jdbc.password=db-pass \
'/users <= SELECT user FROM mysql.user' '/users <= SELECT user FROM mysql.user'
``` ```
@ -48,7 +49,7 @@ docker run -it --rm \
## Serving static files ## Serving static files
Rapidoid will automatically serve static files from the folders: `/app/static` (or `/app/public`, which is deprecated). To serve the contents of the `/your-www-root` directory, please mount it as `/app/static`: Rapidoid will automatically serve static files from the folders: `/app/static`. To serve the contents of the `/your-www-root` directory, please mount it as `/app/static`:
```console ```console
$ docker run -it --rm \ $ docker run -it --rm \
@ -61,15 +62,15 @@ $ docker run -it --rm \
Rapidoid will try to read the configuration from `/app/config.yml`. The configuration can also be specified with command-line arguments or environment variables. Rapidoid will try to read the configuration from `/app/config.yml`. The configuration can also be specified with command-line arguments or environment variables.
To configure a custom port (by default `8888`) for the default and the Admin server, run the following command. If `admin.port` is not configured, the default server is also used as Admin server, so only one port will be opened (`on.port`). To configure a custom port (by default `8888`) for the default and the Admin server, run the following command. If `rapidoid-admin.port` is not configured, the default server is also used as Admin server, so only one port will be opened (`rapidoid.port`).
```console ```console
$ docker run -it --rm \ $ docker run -it --rm \
-p 4444:4444 \ -p 4444:4444 \
-p 9999:9999 \ -p 9999:9999 \
%%REPO%% \ %%REPO%% \
on.port=4444 \ rapidoid.port=4444 \
admin.port=9999 \ rapidoid-admin.port=9999 \
app.services=ping \ app.services=ping \
admin.services=status admin.services=status
``` ```
@ -82,8 +83,8 @@ The same setup can be configured with environment variables:
$ docker run -it --rm \ $ docker run -it --rm \
-p 4444:4444 \ -p 4444:4444 \
-p 9999:9999 \ -p 9999:9999 \
-e ON_PORT=4444 \ -e RAPIDOID_PORT=4444 \
-e ADMIN_PORT=9999 \ -e RAPIDOID-ADMIN_PORT=9999 \
%%REPO%% \ %%REPO%% \
app.services=ping \ app.services=ping \
admin.services=status admin.services=status