Use Docker Compose for deployment
CI / smoke-test (push) Successful in 49s

This commit is contained in:
Mikhail Lobanov
2026-10-14 23:58:02 +03:00
parent 4f1c41921d
commit 36bd130a28
2 changed files with 2 additions and 11 deletions
+1 -10
View File
@@ -81,16 +81,7 @@ jobs:
docker stop devops-platform
docker rm devops-platform
if docker run -d \
--name devops-platform \
--restart unless-stopped \
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges:true \
--memory=256m \
--cpus=0.5 \
-p 127.0.0.1:8000:8000 \
"$IMAGE"; then
if IMAGE="$IMAGE" docker compose up -d --no-build app; then
echo "New container started"
else
echo "Failed to start new container; restoring old image"
+1 -1
View File
@@ -1,6 +1,6 @@
services:
app:
image: mikhaillobanov/devops-platform:latest
image: ${IMAGE:-mikhaillobanov/devops-platform:latest}
container_name: devops-platform
restart: unless-stopped