DOCKER_COMPOSE := docker compose -f compose.prod.yaml .PHONY: build build: ${DOCKER_COMPOSE} build .PHONY: serve serve: up .PHONY: clean clean: down .PHONY: up up: ${DOCKER_COMPOSE} up -d .PHONY: down down: ${DOCKER_COMPOSE} down .PHONY: logs logs: ${DOCKER_COMPOSE} logs .PHONY: logsf logsf: ${DOCKER_COMPOSE} logs -f .PHONY: psql psql: ${DOCKER_COMPOSE} up --wait db ${DOCKER_COMPOSE} exec db psql --user=postgres albatross .PHONY: psql-query psql-query: ${DOCKER_COMPOSE} up --wait db ${DOCKER_COMPOSE} exec --no-TTY db psql --user=postgres albatross .PHONY: sqldef-dryrun sqldef-dryrun: down ${DOCKER_COMPOSE} build db ${DOCKER_COMPOSE} up --wait db ${DOCKER_COMPOSE} run --no-TTY tools psqldef --dry-run < ./backend/schema.sql .PHONY: asynq asynq: ${DOCKER_COMPOSE} up --wait db ${DOCKER_COMPOSE} run tools go run github.com/hibiken/asynq/tools/asynq dash .PHONY: sqldef sqldef: down ${DOCKER_COMPOSE} build db ${DOCKER_COMPOSE} up --wait db ${DOCKER_COMPOSE} run --no-TTY tools psqldef < ./backend/schema.sql