Initial commit
This commit is contained in:
16
templates/docker-compose.service.j2
Normal file
16
templates/docker-compose.service.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Docker DVWA Hardened Service
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
User=root
|
||||
Group=docker
|
||||
WorkingDirectory=/opt/dvwa-docker
|
||||
ExecStartPre={{ dockercompose_location }} -f docker-compose.yml down
|
||||
ExecStart={{ dockercompose_location }} -f docker-compose.yml up
|
||||
ExecStop={{ dockercompose_location }} -f docker-compose.yml down
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user