Sync your own workout data from your "Strong" app
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

make strong-api-fetch executable

tolik518 167a456d 600b8e85

+8 -7
+4 -3
Dockerfile
··· 13 13 WORKDIR /usr/strong-api-fetch 14 14 COPY --from=builder /usr/local/cargo/bin/strong-api-fetch /usr/bin/strong-api-fetch 15 15 16 - # Add the cron job: run every 12 hours and log output 17 - RUN echo "0,30 18-20 * * * /usr/bin/strong-api-fetch >> /var/log/cron.log 2>&1" > /etc/cron.d/strong-api-fetch 16 + # will run the cron job every day at 18:00, 18:30, 19:00, 19:30, 20:00, and 20:30 17 + RUN echo "0,30 18-20 * * * root /usr/bin/strong-api-fetch >> /var/log/cron.log 2>&1" > /etc/cron.d/strong-api-fetch 18 18 19 19 # Ensure the cron job file has proper permissions 20 - RUN chmod 0644 /etc/cron.d/strong-api-fetch 20 + RUN chmod 0644 /etc/cron.d/strong-api-fetch && \ 21 + chmod +x /usr/bin/strong-api-fetch 21 22 22 23 # Install the new cron job 23 24 RUN crontab /etc/cron.d/strong-api-fetch
+4 -4
docker-compose.yml
··· 1 1 services: 2 2 strong-api-fetch: 3 - image: strong-api-fetch:latest 4 3 build: 5 - context: . 4 + context: . 6 5 container_name: strong-api-fetch 7 6 volumes: 8 7 - ./:/usr/strong-api-fetch 9 - - ./log.log:/etc/cron.d/strong-api-fetch 10 8 networks: 11 9 - service-network 12 10 ··· 25 23 - CLICKHOUSE_USER=tolik518 26 24 - CLICKHOUSE_PASSWORD=admin 27 25 networks: 28 - - service-network 26 + service-network: 27 + aliases: 28 + - clickhouse-server 29 29 30 30 networks: 31 31 service-network: