From 56fd4aa5ab6e4fa3c8624cb547bc4984853714a8 Mon Sep 17 00:00:00 2001 From: Joshua Arulsamy Date: Thu, 13 Aug 2020 01:58:31 -0600 Subject: [PATCH] :sparkles: Makefile for dev and prod envs --- Makefile | 17 +++++++++++++++++ docker-compose_dev.yml | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Makefile create mode 100644 docker-compose_dev.yml diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a8ddb8e --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +.PHONY: help pull build clean +.DEFAULT_GOAL: build + +help: + @echo "make pull" + @echo " Start docker container with pull" + @echo "make build" + @echo " Start docker container rebuilding container" + +pull: + docker-compose up + +build: + docker-compose -f docker-compose_dev.yml up --build + +clean: + docker system prune -a diff --git a/docker-compose_dev.yml b/docker-compose_dev.yml new file mode 100644 index 0000000..9607413 --- /dev/null +++ b/docker-compose_dev.yml @@ -0,0 +1,13 @@ +version: "3" +services: + plex-bot: + container_name: "PlexBot" + build: . + environment: + - PUID=1000 + - PGID=1000 + - TZ=America/Denver + # Required dir for configuration files + volumes: + - "./config:/config:ro" + restart: "unless-stopped"