Browse Source

Fixed IO bug and created docker-compose script for project

master
jrtechs 3 years ago
parent
commit
abd3f389d7
2 changed files with 20 additions and 1 deletions
  1. +19
    -0
      docker-compose.yml
  2. +1
    -1
      fileIO.js

+ 19
- 0
docker-compose.yml View File

@ -0,0 +1,19 @@
version: '3.1'
networks:
external-network:
external:
name: external-network
services:
video:
image: home-brew-plex
build: ./
container_name: home-brew-plex
restart: always
ports:
- "4000:4000"
networks:
- external-network
volumes:
- ./:/src

+ 1
- 1
fileIO.js View File

@ -15,7 +15,7 @@ module.exports =
});
},
writEnvToFile: function(fileName, jsonObject)
writeJSONToFile: function(fileName, jsonObject)
{
const json = JSON.stringify(jsonObject, null, 4);
fs.writeFile(fileName, json, 'utf8', function()

Loading…
Cancel
Save