diff --git a/.dockerignore b/.dockerignore index 6ed6843..617bfc5 100755 --- a/.dockerignore +++ b/.dockerignore @@ -19,4 +19,8 @@ queue_state.json search_demo.py celery_worker.log static/js/* -logs/ \ No newline at end of file +logs/ +.env.example +.env +.venv +data diff --git a/.env b/.env deleted file mode 100644 index 1ca1a5d..0000000 --- a/.env +++ /dev/null @@ -1,13 +0,0 @@ -# Docker Compose environment variables - -# Redis connection (external or internal) -REDIS_HOST=redis -REDIS_PORT=6379 -REDIS_DB=0 -REDIS_PASSWORD=CHANGE_ME - -EXPLICIT_FILTER=false # Set to true to filter out explicit content - -PUID=1000 # User ID for the container -PGID=1000 # Group ID for the container -UMASK=0022 # Optional: Sets the default file permissions for newly created files within the container. diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..4e50c72 --- /dev/null +++ b/.env.example @@ -0,0 +1,20 @@ +# Docker Compose environment variables# Delete all comments of this when deploying (everything that is ) + +# Redis connection (external or internal) +REDIS_HOST=redis +REDIS_PORT=6379 +REDIS_DB=0 +REDIS_PASSWORD=CHANGE_ME + +# Set to true to filter out explicit content + +EXPLICIT_FILTER=false + +# User ID for the container +PUID=1000 + +# Group ID for the container +PGID=1000 + +# Optional: Sets the default file permissions for newly created files within the container. +UMASK=0022 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7f9e133..f8065d8 100755 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,5 @@ logs/spotizerr.log /.venv static/js data -logs/ \ No newline at end of file +logs/ +.env \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 82659d4..6d6a417 100755 --- a/Dockerfile +++ b/Dockerfile @@ -33,8 +33,8 @@ RUN npm install -g typescript RUN tsc # Create necessary directories with proper permissions -RUN mkdir -p downloads config creds logs && \ - chmod 777 downloads config creds logs +RUN mkdir -p downloads data/config data/creds data/watch data/history logs/tasks && \ + chmod -R 777 downloads data logs # Make entrypoint script executable RUN chmod +x entrypoint.sh diff --git a/docker-compose.yaml b/docker-compose.yaml index 44d56d9..3d23341 100755 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,7 +8,7 @@ services: - ./logs:/app/logs # <-- Volume for persistent logs ports: - 7171:7171 - image: test + image: cooldockerizer9/spotizerr container_name: spotizerr-app restart: unless-stopped environment: