Here are some example snippets to help you get started creating a container.
---
version: "3"
services:
code-server:
image: afeldman1/appointment-alerts
container_name: appointment-alerts
environment:
- PROCESS_NAME=
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SENDER_USERNAME=
- SENDER_PASSWORD=
- RECIPIENTS=
volumes:
- /path/to/appdata:/logs
network_mode: host
restart: unless-stopped
docker run -d \
--name appointment-alerts \
--network host \
-e PROCESS_NAME= \
-e SMTP_HOST=smtp.gmail.com \
-e SMTP_PORT=587 \
-e SENDER_USERNAME= \
-e SENDER_PASSWORD= \
-e RECIPIENTS= \
-v /path/to/appdata:/logs \
--restart unless-stopped \
afeldman1/appointment-alerts:latest
Container images are configured using parameters passed at runtime and environmental variables.
Parameter | Function |
---|---|
-e PROCESS_NAME= |
Process to run. Options: "vaccine_valley", "nj_mvc" |
-e SMTP_HOST=smtp.gmail.com |
SMTP server address |
-e SMTP_PORT=587 |
SMTP server port |
-e SENDER_USERNAME= |
Username for SMTP server |
-e SENDER_PASSWORD= |
Password for SMTP server |
-e RECIPIENTS= |
Comma separated list of alert email address recipients |