27 lines
975 B
Docker
27 lines
975 B
Docker
###
|
|
# This version of Torsearch runs the scheduler, downloader, and worker
|
|
# in this one container. Each process is managerd by supervisord
|
|
# and can be configured via environment variables and more
|
|
# than one of these containers cans till be run.
|
|
###
|
|
ARG APP_VERSION="latest"
|
|
|
|
FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS base_image
|
|
|
|
|
|
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
|
|
|
ENV APP_VERSION=${APP_VERSION}
|
|
|
|
COPY --from=base_image --chown=1000:1000 /app /app
|
|
COPY docker/ /app/docker
|
|
|
|
# We start supervisord and supervisord starts
|
|
# respective service in the configuration file.
|
|
ENTRYPOINT ["/app/bin/console", "init:worker"]
|
|
|
|
# Message transports can be enabled by passing them as command options.
|
|
# Inlcluding a number with the option will start that amount of processes
|
|
# for the transport. Not supplying a number will default to 1.
|
|
# --download --monitor OR --download 2 --monitor
|