mirror of
https://github.com/owenthereal/jqplay.git
synced 2025-04-19 06:02:17 +03:00
* Dont' require JSON input when null input is enabled Fixes #76 and also based a but on #85 by @zstadler * Add `docker compose watch` for easier development * Trigger run when query & `--null-input` are both not empty * Add test test to validate `--null-input` * Rename error with `Err` prefix --------- Co-authored-by: Owen Ou <o@owenou.com>
31 lines
654 B
YAML
31 lines
654 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
jqplay:
|
|
build: .
|
|
depends_on:
|
|
- db
|
|
restart: always
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
DATABASE_URL: "postgres://jqplay-user:jqplay-pass@db/jqplay-db?sslmode=disable"
|
|
develop:
|
|
watch: &watch
|
|
- action: rebuild
|
|
path: .
|
|
ignore:
|
|
- .git
|
|
- .github
|
|
- build
|
|
- node_modules
|
|
db:
|
|
image: postgres:latest
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: jqplay-user
|
|
POSTGRES_PASSWORD: jqplay-pass
|
|
POSTGRES_DB: jqplay-db
|
|
volumes:
|
|
- ./server/db.sql:/docker-entrypoint-initdb.d/db.sql
|