feat: run managed containers from PawSQL image
This commit is contained in:
@@ -33,10 +33,11 @@ docker build -t pawsql .
|
||||
docker run --rm --publish 5432:5432 \
|
||||
--volume "$PWD/Barkfile:/etc/pawsql/Barkfile:ro" \
|
||||
--volume "$PWD/tls:/etc/pawsql/tls:ro" \
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock \
|
||||
pawsql
|
||||
```
|
||||
|
||||
The provided image contains only PawSQL and is suitable for external `upstream` routes. Managed PostgreSQL routes require native PawSQL or a custom image that supplies a Docker CLI and access to the Docker Engine, typically through the Docker socket.
|
||||
The supplied image includes the Docker CLI so managed `postgres` routes can create, start, and stop their containers through the mounted Docker socket. The socket grants PawSQL root-equivalent control of the Docker host; mount it only for trusted Barkfiles and trusted administrators.
|
||||
|
||||
## Barkfile
|
||||
|
||||
|
||||
Reference in New Issue
Block a user