Compare commits

...
2 Commits
Author SHA1 Message Date
Mikhail Lobanov 36bd130a28 Use Docker Compose for deployment
CI / smoke-test (push) Successful in 49s
2026-10-14 23:58:02 +03:00
Mikhail Lobanov 4f1c41921d Add Docker Compose configuration 2026-10-14 23:39:19 +03:00
2 changed files with 18 additions and 10 deletions
+1 -10
View File
@@ -81,16 +81,7 @@ jobs:
docker stop devops-platform docker stop devops-platform
docker rm devops-platform docker rm devops-platform
if docker run -d \ if IMAGE="$IMAGE" docker compose up -d --no-build app; then
--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
echo "New container started" echo "New container started"
else else
echo "Failed to start new container; restoring old image" echo "Failed to start new container; restoring old image"
+17
View File
@@ -0,0 +1,17 @@
services:
app:
image: ${IMAGE:-mikhaillobanov/devops-platform:latest}
container_name: devops-platform
restart: unless-stopped
ports:
- "127.0.0.1:8000:8000"
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 256m
cpus: 0.5