diff --git a/.env b/.env deleted file mode 100644 index 4c79873..0000000 --- a/.env +++ /dev/null @@ -1,14 +0,0 @@ -# Seeker socket path -IPC_SOCKET_PATH = /tmp/seeker.sock - -# Database ----------------------------------------------------------------------------------------- - -DB_TYPE = mysql -DB_HOST = database -DB_PORT = 3306 -DB_USER = root -DB_PASSWORD_FILE = /run/secrets/mysql_root_password -DB_DATABASE = autoplex_request - -# Torrent client IPC socket path -TORRENT_CLIENT_IPC_SOCKET = /tmp/torrent_client.sock diff --git a/.env.example b/.env.example index 4c79873..28d01df 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ # Seeker socket path -IPC_SOCKET_PATH = /tmp/seeker.sock +IPC_SOCKET_PATH = /var/autoplex/ipc/seeker.sock # Database ----------------------------------------------------------------------------------------- @@ -11,4 +11,4 @@ DB_PASSWORD_FILE = /run/secrets/mysql_root_password DB_DATABASE = autoplex_request # Torrent client IPC socket path -TORRENT_CLIENT_IPC_SOCKET = /tmp/torrent_client.sock +TORRENT_CLIENT_IPC_SOCKET = /var/autoplex/ipc/torrent_client.sock diff --git a/Dockerfile b/Dockerfile index 54d8402..f00e051 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM node:14-alpine AS base WORKDIR /app +RUN mkdir /var/autoplex && chown node:node -R /var/autoplex # An image containing necessary components for building FROM base AS builder