summaryrefslogtreecommitdiffstats
path: root/Services/postgres/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'Services/postgres/README.md')
-rw-r--r--Services/postgres/README.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/Services/postgres/README.md b/Services/postgres/README.md
index d801d74..47eba27 100644
--- a/Services/postgres/README.md
+++ b/Services/postgres/README.md
@@ -35,8 +35,8 @@ service:
POSTGRESQL_PASSWORD: "pwd-test"
POSTGRESQL_DATABASE: "db_test"
volumes:
- - "/tmp/container/logs/postgres:/data/logs/postgres"
- - "/tmp/container/postgres:/data/postgres"
+ - "/tmp/container/logs/postgres:/logs"
+ - "/tmp/container/postgres:/data"
```
## Docker-compose in various situations
@@ -99,8 +99,8 @@ CMD ["/bin/run.sh"]
| POSTGRESQL_DATABASE | `string` | `no` | If present, add a new database with this name
| LOADSQL_PATH | `string` | `auto` | Path used to find sql dump to import at startup
| HOSTNAME | `auto` | `auto` | Container unique id automatically assigned by docker daemon at startup
-| LOG_PATH | `auto` | `auto` | default set to /data/logs/postgres and used as a volume mountpoint
-| DATA_PATH | `auto` | `auto` | default set to /data/postgres and used as a volume mountpoint
+| LOG_PATH | `auto` | `auto` | default set to /logs and used as a volume mountpoint
+| DATA_PATH | `auto` | `auto` | default set to /data and used as a volume mountpoint
## Exposed port
@@ -112,8 +112,8 @@ CMD ["/bin/run.sh"]
| Container directory | Description |
|----------------------|--------------------------------------------------------------------------|
-| /data/logs/postgres | log directory used to record container and postgres logs
-| /data/postgres | data directory served by postgres. If empty will be filled with database files on startup. In other case use content from mountpoint or data volumes
+| /logs | log directory used to record container and postgres logs
+| /data | data directory served by postgres. If empty will be filled with database files on startup. In other case use content from mountpoint or data volumes
## Testing the service
@@ -134,8 +134,8 @@ You must have a working environment with the source code of this repository. Rea
1. Jump into the container directory with `cd Services/postgres`
2. Build the container using `docker build -t sv-postgres .`
3. Run this container
- 1. Interactively with `docker run -p 5432:5432 -v /data/logs/postgres -it sv-postgres`. 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 5432:5432 -v /data/logs/postgres -d sv-postgres`
+ 1. Interactively with `docker run -p 5432:5432 -v /logs -it sv-postgres`. 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 5432:5432 -v /logs -d sv-postgres`
### Build & run a container using `docker-compose`