1
0
mirror of https://github.com/owenthereal/jqplay.git synced 2025-04-19 06:02:17 +03:00
jqplay/docker-compose.yml
Mattias Wadman 1c739c7ff0
Don't require JSON input when null input is enabled (#174)
* 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>
2024-01-09 20:27:21 -08:00

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