Skip to content

Commit

Permalink
Add info about docker-compose yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
roberthunterjr committed Feb 5, 2025
1 parent 1fe15cc commit 9e14a8f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/design/adminconsole/WORKER-CRON-PROCEES.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,31 @@ COPY --from=build /app .
CMD ["cron", "-f"]
```

### Add Docker compose for Development

The `health-check-svs.yml` docker compose file provides a simple way to test building the image and logging the output.

This might be moved or modified in the future to better support a multi-container environment.

```yml
version: "3.9"

services:
health-check-service:
build:
context: ../
dockerfile: Docker/Dockerfile
volumes:
- service-logs:/var/log/achealthsvc.log
env_file:
- .env

volumes:
service-logs:
name: health-check-service-logs

```

## Testing Strategy

The Docker file takes advantage of crontab file by piping the output of th cron executable to a log file. To ensure the executable is running, this log file is inspected to ensure the output from running the application is piped to the `achealthsvc.log` log file.
Expand Down

0 comments on commit 9e14a8f

Please sign in to comment.