Skip to content

Instantly share code, notes, and snippets.

@vokshirg
vokshirg / Makefile
Created May 12, 2022 13:27 — forked from hulous/Makefile
Rails app Docker and docker-compose command abstraction
APPLICATION_NAME = scubadiveslog # main app name or workdir defined in Dockerfile
WEB_CONTAINER_NAME = scuba-web # web container as defined in docker-compose
.DEFAULT_GOAL := help
# Docker stuff
attach: ## Attach running web container to see logs
docker attach $(APPLICATION_NAME)_$(WEB_CONTAINER_NAME)_1
up: ## Run containers
docker-compose up -d