Migrate off of ECS onto sobeck.jdb-software.com.
This commit is contained in:
16
api/hff_entry_forms.service
Normal file
16
api/hff_entry_forms.service
Normal file
@ -0,0 +1,16 @@
|
||||
[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 \
|
||||
063932952339.dkr.ecr.us-west-2.amazonaws.com/hff_entry_forms:HFF_ENTRY_FORMS_VERSION
|
||||
ExecStop=/usr/bin/docker stop --name %n
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Reference in New Issue
Block a user