skip to Main Content

Docker compose doesn't work correctly with yaml config

Recently I've added the following command in command section of the docker-compose config file: livy: image: ecp/spark:${TAG:-latest} container_name: spark-livy ports: - "${LIVY_PORT:-8998}:8998" command: ["sh", "-c", "/opt/bitnami/livy/bin/livy-server && sed -i 's/r$//' /opt/bitnami/livy/conf/livy-env.sh && sed -i 's/r$//' /opt/bitnami/livy/conf/livy.conf && sed -i 's/r$//'…

VIEW QUESTION

How not to start docker container on system reboot?

I have compose.yml file: api: restart: on-failure command: uvicorn app:app ... jobs: restart: on-failure command: python job.py ... job.py: import asyncio from prometheus_client import start_http_server async def background(sio): await asyncio.gather(...) # <- there are many tasks with while True start_http_server(5000)…

VIEW QUESTION
Back To Top
Search