Skip to content

chore: enhances out-of-box first run experience on linux #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,36 +1,45 @@
# Detect available container engine (docker or podman)
CONTAINER_ENGINE := $(shell (command -v docker > /dev/null && echo docker) || (command -v podman > /dev/null && echo podman))
COMPOSE_CMD := $(shell (command -v docker-compose > /dev/null && echo docker-compose) || (command -v podman-compose > /dev/null && echo podman-compose))

# Error if no container engine is available
ifeq ($(CONTAINER_ENGINE),)
$(error No container engine found. Please install Docker or Podman)
endif

.PHONY: build up down restart logs

build:
docker-compose build
$(COMPOSE_CMD) build

watch:
docker-compose up
$(COMPOSE_CMD) up

up:
docker-compose up
$(COMPOSE_CMD) up

upd:
docker-compose up -d
$(COMPOSE_CMD) up -d

dev-up:
docker-compose -f docker-compose.dev.yml up --build --force-recreate
$(COMPOSE_CMD) -f docker-compose.dev.yml up --build --force-recreate

dev-upd:
docker-compose -f docker-compose.dev.yml up --build --force-recreate -d
$(COMPOSE_CMD) -f docker-compose.dev.yml up --build --force-recreate -d

down:
docker-compose down
$(COMPOSE_CMD) down

re: build watch

logs:
docker-compose logs -f
$(COMPOSE_CMD) logs -f

logs-playwright:
docker-compose logs -f playwright
$(COMPOSE_CMD) logs -f playwright

logs-backend:
docker-compose logs -f backend
$(COMPOSE_CMD) logs -f backend

logs-frontend:
docker-compose logs -f frontend
$(COMPOSE_CMD) logs -f frontend
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "80:3000"
- "8080:3000"
hostname: frontend
volumes:
- ./frontend:/app
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ services:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:3000"
- "8080:3000"
hostname: frontend