Skip to content

Instantly share code, notes, and snippets.

@IkezoeMakoto IkezoeMakoto/Makefile
Last active Jun 30, 2018

Embed
What would you like to do?
service-base
version: '3'
services:
app_from_image:
image: alpine
ports:
- "80:80"
environment:
ENV: 'local'
volumes:
- ./:/app
app_from_dockerfile:
build:
context: ./app
args:
ENV: local
ports:
- "80:80"
volumes:
- ./:/app
.PHONY: up down
.env:
@cp .env.example .env
up: .env
docker-compose up -d
down:
docker-compose down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.