Skip to content

Commit b7fa543

Browse files
committed
fix: switch to newer docker compose syntax
1 parent b4328b0 commit b7fa543

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ commands :
1818

1919
## build : build files but do not run a server.
2020
build :
21-
docker-compose build --pull
21+
docker compose build --pull
2222

2323
## serve : start and run a local server.
2424
serve : build
25-
@docker-compose run --rm --service-ports --user="${UID}:${GID}" hugo
25+
@docker compose up -d
2626

2727
## shell : open a hugo shell
2828
shell : build
29-
docker-compose run --rm --user="${UID}:${GID}" hugo shell
29+
docker compose run --rm hugo shell
3030

3131
## stop : stop the docker server and clean up
3232
stop :
33-
docker-compose down -v
33+
docker compose down -v
3434

3535
## clean : clean up junk files.
3636
clean :

0 commit comments

Comments
 (0)