Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 26f0e28

Browse files
feat(makefile): add target to start prebuilt containers
update README to showcase cmds for starting prebuilt containers as well as for local development
1 parent d579bc0 commit 26f0e28

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ Prerequisites
2020

2121
### Getting started
2222

23-
Run the application locally with these make commands `make dev`.
23+
Run the application locally with these make commands.
24+
25+
```sh
26+
# start prebuilt containers
27+
make start
28+
29+
# or start containers for local development
30+
make dev
31+
```
2432

2533
This will setup default configuration (including dummy secrets),
2634
install npm dependencies and start the application using docker on port `3000`.

makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.PHONY: clean build run logsmake
22

33
DC=docker compose -f docker-compose.local.yml
4+
DC_DEV=docker compose -f docker-compose.dev.yml
45

56
default: help
67
init: init-env check-env install
@@ -16,14 +17,17 @@ help:
1617
@echo "TARGETS:"
1718
@echo " init: initialize project"
1819
@echo
20+
@echo " // For starting application"
21+
@echo " start: use prebuilt containers"
22+
@echo
1923
@echo " // For local development"
2024
@echo " dev: start local development"
2125
@echo " dev-all: start all dev containers"
2226
@echo " dev-web: start dev web image"
2327
@echo " dev-cms: start dev cms image"
2428
@echo " dev-db: start dev db image"
2529
@echo
26-
@echo " // For building containers"
30+
@echo " // For building local containers"
2731
@echo " build: build all"
2832
@echo " build-web: build web image"
2933
@echo " build-cms: build cms image"
@@ -73,6 +77,9 @@ clean:
7377
$(DC) down
7478
$(DC) down --volumes
7579

80+
start:
81+
$(DC_DEV) up -d
82+
7683
stop:
7784
$(DC) stop
7885

@@ -85,6 +92,7 @@ stop-cms:
8592
stop-db:
8693
$(DC) stop db
8794

95+
8896
## DOCKER DEVELOPMENT
8997
dev: init dev-all
9098

0 commit comments

Comments
 (0)