|
|
@@ -7,7 +7,7 @@ LOCAL_STAGING_DIR ?= /tmp/staging
|
|
|
LOCAL_PLEX_DIR ?= /tmp/plex
|
|
|
MEDIA_DIR ?= /tmp/media
|
|
|
|
|
|
-default: build
|
|
|
+default: init build run
|
|
|
|
|
|
init:
|
|
|
bash init_container
|
|
|
@@ -31,7 +31,17 @@ daemon:
|
|
|
stop:
|
|
|
docker stop $(ID)
|
|
|
|
|
|
-rm: stop
|
|
|
+public:
|
|
|
+ bash add_public_route $(ID) $(PUBLIC_IP) $(PUBLIC_IFACE)
|
|
|
+ docker exec $(ID) ipfs config Addresses.Swarm --json '[ "/ip4/0.0.0.0/tcp/40001" ]'
|
|
|
+ docker restart $(ID)
|
|
|
+
|
|
|
+private:
|
|
|
+ bash remove_public_route $(ID) $(PUBLIC_IP) $(PUBLIC_IFACE)
|
|
|
+ docker exec $(ID) ipfs config Addresses.Swarm --json '[ "/ip4/127.0.0.1/tcp/40001" ]'
|
|
|
+ docker restart $(ID)
|
|
|
+
|
|
|
+rm: private stop
|
|
|
docker rm $(ID)
|
|
|
|
|
|
ps:
|