Deploy website
This commit is contained in:
parent
4e44267a70
commit
809f592de1
|
@ -0,0 +1,17 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Docker Compose Website Application Service
|
||||||
|
Requires=docker.service
|
||||||
|
After=docker.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=/opt/website
|
||||||
|
ExecStart=/usr/bin/docker-compose --project-name website up
|
||||||
|
ExecStop=/usr/bin/docker-compose --project-name website down
|
||||||
|
TimeoutStartSec=0
|
||||||
|
Restart=on-failure
|
||||||
|
StartLimitIntervalSec=60
|
||||||
|
StartLimitBurst=3
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
website:
|
||||||
|
container_name: website
|
||||||
|
image: jilits/website:0.1.0
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 8000:1313
|
Loading…
Reference in New Issue