diff --git a/examples/docker-compose.yaml b/examples/docker-compose.yaml index 9f7abcb7..e4e12ba7 100644 --- a/examples/docker-compose.yaml +++ b/examples/docker-compose.yaml @@ -4,7 +4,8 @@ services: stdin_open: true tty: true image: ghcr.io/nanos/fedifetcher:latest - command: "--access-token= --server=" + # We override the Dockerfile entrypoint, run the python code with our commands, then append our sleep command. + entrypoint: ["sh", "-c", "python /app/find_posts.py --access-token= --server=; sleep 3600; "] # Persist our data volumes: - ./data:/app/artifacts @@ -14,6 +15,4 @@ services: replicas: 1 restart_policy: # The `any` condition means even after successful runs, we'll restart the script - condition: any - # Specify how often the script should run - for example; after 1 hour. - delay: 1h \ No newline at end of file + condition: any \ No newline at end of file