Deploy website

This commit is contained in:
BatchAccount 1001 2022-12-01 22:37:52 +01:00
parent 4e44267a70
commit 809f592de1
2 changed files with 26 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,9 @@
version: "3.8"
services:
website:
container_name: website
image: jilits/website:0.1.0
restart: unless-stopped
ports:
- 8000:1313