diff options
author | startxfr <clarue@startx.fr> | 2016-02-06 05:05:57 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2016-02-06 05:05:57 +0100 |
commit | 5cff390c081bdfb756a8977ad0bd56d778202d6b (patch) | |
tree | ce018b9be9ad054e4f7aa6891d7b4668c1ad74af /Services/nodejs/README.md | |
parent | 0f3bcf30ae748a75c22a03d4655dba4d8dc71185 (diff) | |
download | phpmyadmin-5cff390c081bdfb756a8977ad0bd56d778202d6b.tar.gz phpmyadmin-5cff390c081bdfb756a8977ad0bd56d778202d6b.tar.bz2 phpmyadmin-5cff390c081bdfb756a8977ad0bd56d778202d6b.tar.xz phpmyadmin-5cff390c081bdfb756a8977ad0bd56d778202d6b.zip |
reorg avec gestion des sig
Diffstat (limited to 'Services/nodejs/README.md')
-rw-r--r-- | Services/nodejs/README.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Services/nodejs/README.md b/Services/nodejs/README.md index 0aae3e5..806f2d5 100644 --- a/Services/nodejs/README.md +++ b/Services/nodejs/README.md @@ -30,8 +30,8 @@ service: CONTAINER_SERVICE: "nodejs" CONTAINER_INSTANCE: "service-nodejs" volumes: - - "/tmp/container/logs/nodejs:/data/logs/nodejs" - - "/tmp/container/nodejs:/data/nodejs" + - "/tmp/container/logs/nodejs:/logs" + - "/tmp/container/nodejs:/data" ``` ## Docker-compose in various situations @@ -89,8 +89,8 @@ CMD ["/bin/run.sh"] | CONTAINER_INSTANCE | `string` | `yes` | Container name. Should be uning to get fine grained log and application reporting | CONTAINER_TYPE | `string` | `no` | Container family (os, service, application. could be enhanced | CONTAINER_SERVICE | `string` | `no` | Define the type of service or application provided -| LOG_PATH | `auto` | `auto` | default set to /data/logs/nodejs and used as a volume mountpoint -| APP_PATH | `auto` | `auto` | default set to /data/nodejs and used as a volume mountpoint +| LOG_PATH | `auto` | `auto` | default set to /logs and used as a volume mountpoint +| APP_PATH | `auto` | `auto` | default set to /data and used as a volume mountpoint | TMP_APP_PATH | `auto` | `auto` | default set to /tmp/nodejs and used to hold app content and copy to $APP_PATH on startup (if $APP_PATH is empty) ## Exposed port @@ -103,8 +103,8 @@ CMD ["/bin/run.sh"] | Container directory | Description | |----------------------|--------------------------------------------------------------------------| -| /data/logs/nodejs | log directory used to record container and nodejs logs -| /data/nodejs | data directory served by nodejs. If empty will be filled with app on startup. In other case use content from $TMP_APP_PATH directory +| /logs | log directory used to record container and nodejs logs +| /data | data directory served by nodejs. If empty will be filled with app on startup. In other case use content from $TMP_APP_PATH directory ## Testing the service @@ -125,8 +125,8 @@ You must have a working environment with the source code of this repository. Rea 1. Jump into the container directory with `cd Services/nodejs` 2. Build the container using `docker build -t sv-nodejs .` 3. Run this container - 1. Interactively with `docker run -p 8000:8000 -v /data/logs/nodejs -it sv-nodejs`. If you add a second parameter (like `/bin/bash`) to will run this command instead of the default entrypoint. Usefull to interact with this container (ex: `/bin/bash`, `/bin/ps -a`, `/bin/df -h`,...) - 2. As a daemon with `docker run -p 8000:8000 -v /data/logs/nodejs -d sv-nodejs` + 1. Interactively with `docker run -p 8000:8000 -v /logs -it sv-nodejs`. If you add a second parameter (like `/bin/bash`) to will run this command instead of the default entrypoint. Usefull to interact with this container (ex: `/bin/bash`, `/bin/ps -a`, `/bin/df -h`,...) + 2. As a daemon with `docker run -p 8000:8000 -v /logs -d sv-nodejs` ### Build & run a container using `docker-compose` |