Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd6918abd1 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -24,3 +24,6 @@ phpstan.neon
|
|||||||
/phpunit.xml
|
/phpunit.xml
|
||||||
/.phpunit.cache/
|
/.phpunit.cache/
|
||||||
###< phpunit/phpunit ###
|
###< phpunit/phpunit ###
|
||||||
|
|
||||||
|
docs/examples/movies/
|
||||||
|
docs/examples/tvshows/
|
||||||
|
|||||||
@@ -3,6 +3,9 @@ FROM code.caldwell.digital/home/torsearch-base:php8.4
|
|||||||
ARG APP_VERSION="0.0.0-dev"
|
ARG APP_VERSION="0.0.0-dev"
|
||||||
ENV APP_VERSION="${APP_VERSION}"
|
ENV APP_VERSION="${APP_VERSION}"
|
||||||
|
|
||||||
|
ARG TMDB_API=""
|
||||||
|
ENV TMDB_API="${TMDB_API}"
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
COPY --chmod=775 docker/app/entrypoint.sh /usr/local/bin/docker-entrypoint
|
COPY --chmod=775 docker/app/entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||||
COPY docker/app/Caddyfile /etc/frankenphp/Caddyfile
|
COPY docker/app/Caddyfile /etc/frankenphp/Caddyfile
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
|||||||
# Set the APP_VERSION in the image
|
# Set the APP_VERSION in the image
|
||||||
ENV APP_VERSION=${APP_VERSION}
|
ENV APP_VERSION=${APP_VERSION}
|
||||||
|
|
||||||
|
ARG TMDB_API=""
|
||||||
|
ENV TMDB_API="${TMDB_API}"
|
||||||
|
|
||||||
# Copy the actual application code from the previously built app
|
# Copy the actual application code from the previously built app
|
||||||
COPY --chown=1000:1000 --from=app_image /app /app
|
COPY --chown=1000:1000 --from=app_image /app /app
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
|||||||
# Set the APP_VERSION in the image
|
# Set the APP_VERSION in the image
|
||||||
ENV APP_VERSION=${APP_VERSION}
|
ENV APP_VERSION=${APP_VERSION}
|
||||||
|
|
||||||
|
ARG TMDB_API=""
|
||||||
|
ENV TMDB_API="${TMDB_API}"
|
||||||
|
|
||||||
# Copy the actual application code from the previously built app
|
# Copy the actual application code from the previously built app
|
||||||
COPY --chown=1000:1000 --from=app_image /app /app
|
COPY --chown=1000:1000 --from=app_image /app /app
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ WEB_PORT=8004
|
|||||||
# The host directories where your media is stored.
|
# The host directories where your media is stored.
|
||||||
# If you would like to use a docker driver for a network
|
# If you would like to use a docker driver for a network
|
||||||
# share, update the compose.yml file to reflect that.
|
# share, update the compose.yml file to reflect that.
|
||||||
LOCAL_MOVIES_DIR="<enter movies dir>"
|
LOCAL_MOVIES_DIR="./movies"
|
||||||
LOCAL_TVSHOWS_DIR="<enter tvshows dir>"
|
LOCAL_TVSHOWS_DIR="./tvshows"
|
||||||
|
|
||||||
# Set the timezone you're in. This helps render monitored items correctly on the calendar
|
# Set the timezone you're in. This helps render monitored items correctly on the calendar
|
||||||
TZ=America/Chicago
|
TZ=America/Chicago
|
||||||
@@ -34,6 +34,8 @@ APP_ENV=prod
|
|||||||
# Mercure is a Caddy module built into the webserver
|
# Mercure is a Caddy module built into the webserver
|
||||||
# that facilitates the usage of websockets to transmit
|
# that facilitates the usage of websockets to transmit
|
||||||
# real time data (download progress, etc.)
|
# real time data (download progress, etc.)
|
||||||
|
# TBH, I've only run into issues when changing these. If
|
||||||
|
# you have problems after changing them, just revert them.
|
||||||
MERCURE_JWT_SECRET="!ChangeThisMercureHubJWTSecretKey!"
|
MERCURE_JWT_SECRET="!ChangeThisMercureHubJWTSecretKey!"
|
||||||
MERCURE_PUBLISHER_JWT_KEY="!ChangeThisMercureHubJWTSecretKey!"
|
MERCURE_PUBLISHER_JWT_KEY="!ChangeThisMercureHubJWTSecretKey!"
|
||||||
MERCURE_SUBSCRIBER_JWT_KEY="!ChangeThisMercureHubJWTSecretKey!"
|
MERCURE_SUBSCRIBER_JWT_KEY="!ChangeThisMercureHubJWTSecretKey!"
|
||||||
@@ -45,11 +47,11 @@ MERCURE_SUBSCRIBER_JWT_KEY="!ChangeThisMercureHubJWTSecretKey!"
|
|||||||
# Use the DATABASE_URL below to use the MariaDB container
|
# Use the DATABASE_URL below to use the MariaDB container
|
||||||
# provided in the example.compose.yml file, or remove this
|
# provided in the example.compose.yml file, or remove this
|
||||||
# line and fill in the details of your own MySQL/MariaDB server
|
# line and fill in the details of your own MySQL/MariaDB server
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD=true
|
|
||||||
MYSQL_DATABASE=app
|
|
||||||
MYSQL_USER=app
|
MYSQL_USER=app
|
||||||
MYSQL_PASSWORD=password
|
MYSQL_PASSWORD="P@ssword123"
|
||||||
|
MYSQL_DATABASE=app
|
||||||
MYSQL_HOST=database
|
MYSQL_HOST=database
|
||||||
|
MYSQL_RANDOM_ROOT_PASSWORD=true
|
||||||
DATABASE_URL="mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_HOST}:3306/${MYSQL_DATABASE}?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
|
DATABASE_URL="mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_HOST}:3306/${MYSQL_DATABASE}?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
|
||||||
|
|
||||||
|
|
||||||
@@ -60,15 +62,6 @@ DATABASE_URL="mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_HOST}:3306/${MYSQL
|
|||||||
REAL_DEBRID_KEY="<enter real debrid api key>"
|
REAL_DEBRID_KEY="<enter real debrid api key>"
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
# TMDB #
|
|
||||||
###################
|
|
||||||
# Enter your TMDB API key
|
|
||||||
# This is used to provide rich search results when searching
|
|
||||||
# for media and rendering the Popular Movies and TV Shows section.
|
|
||||||
TMDB_API="<enter tmdb api key>"
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Redis #
|
# Redis #
|
||||||
###################
|
###################
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ services:
|
|||||||
- mysql:/var/lib/mysql
|
- mysql:/var/lib/mysql
|
||||||
env_file: .env
|
env_file: .env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "mysqladmin", "-u", "${MYSQL_USER}", "-p", "${MYSQL_PASSWORD}" ,"ping", "-h", "localhost" ]
|
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user