2024-08-12 17:14:01 +00:00
|
|
|
[Unit]
|
|
|
|
Description=HFF Entry Forms (TARGET_ENV)
|
|
|
|
After=network-online.target
|
|
|
|
Requires=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
TimeoutStartSec=0
|
|
|
|
Restart=always
|
|
|
|
ExecStartPre=-/usr/bin/docker rm %n
|
|
|
|
ExecStart=/usr/bin/docker run --rm -p TARGET_PORT:80 --name %n \
|
|
|
|
--env-file /etc/hff_entry_forms/TARGET_ENV.env \
|
2024-08-12 19:45:49 +00:00
|
|
|
063932952339.dkr.ecr.us-west-2.amazonaws.com/hff_entry_forms_api:HFF_ENTRY_FORMS_API_VERSION
|
2024-08-12 17:14:01 +00:00
|
|
|
ExecStop=/usr/bin/docker stop --name %n
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|