worried-piano-22913
07/22/2025, 1:33 PM--concurrent
flag?brainy-parrot-55558
07/24/2025, 11:58 AMworried-piano-22913
07/24/2025, 12:59 PMpants package ...
and afterwards you just run your applications locally with docker (compose) ?brainy-parrot-55558
07/24/2025, 1:13 PMpython_sources(name = "lib")
pex_binary(
name = "funds-service",
args = ["funds.main:app"],
dependencies = [
":lib",
"3rdparty/py:reqs#psycopg",
"3rdparty/py:reqs#greenlet",
],
entry_point = "gunicorn",
env = {
"GUNICORN_CMD_ARGS": '-k uvicorn.workers.UvicornWorker -w 1 --forwarded-allow-ips="*" --access-logfile "-" --logger-class "libs.core.logger.GunicornLogger"',
"PORT": "5001",
},
restartable = True,
)
docker_image(
name = "funds",
dependencies = [
"src/docker/base:base",
],
source = "Dockerfile",
)
Dockerfile
FROM --platform=linux/arm64 local/base
# Copy pex files into the container
COPY src.py.apps.funds/funds-service.pex /bin/funds-service
# entrypoint
ENTRYPOINT ["/bin/funds-service"]
compose.yml
funds:
restart: always
env_file:
- .env.docker
image: local/funds:latest
ports:
- '5001:5001'
depends_on:
kafka:
condition: service_started
logging:
driver: 'json-file'
options:
max-size: '100m'
max-file: '3'
witty-breakfast-55011
07/26/2025, 3:37 PMworried-piano-22913
07/28/2025, 12:24 PMpants run ...
on the sources, but as soon as i need to start 2 applications in the monorepo, i have use the --concurrent
flag which i want to avoid. Any ideas?