diff --git a/Dockerfile b/Dockerfile index 3f069be..869a953 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,5 +18,12 @@ RUN npm i -g npm@>=7 # Install dependencies RUN npm i +# Ensure these directories & files exist for compose volumes +RUN mkdir -p /opt/ass/uploads/thumbnails/ +RUN mkdir -p /opt/ass/share/ +RUN touch /opt/ass/config.json +RUN touch /opt/ass/auth.json +RUN touch /opt/ass/data.json + # Start ass CMD npm start diff --git a/compose.yaml b/compose.yaml index 6ddb05e..1297f46 100644 --- a/compose.yaml +++ b/compose.yaml @@ -18,7 +18,6 @@ services: - ./auth.json:/opt/ass/auth.json - ./data.json:/opt/ass/data.json - ./share:/opt/ass/share - - weird:/opt/ass/weird tmpfs: /tmp # temp files such as uploads are stored here working_dir: /opt/ass # this is where the ass files are located within the container tty: true @@ -26,12 +25,4 @@ services: - NODE_ENV=production # for production - ASS_ENV=docker # docker, local, production (not widely used yet) - LOG_LEVEL=debug # debug, info, warn, error - - FORCE_COLOR=3 # force colour output - -volumes: - weird: - driver: local - driver_opts: - o: bind - type: none - device: ./weirdness \ No newline at end of file + - FORCE_COLOR=3 # force colour output \ No newline at end of file