change port

This commit is contained in:
2025-09-01 16:38:29 +03:00
parent 869d2e1f21
commit 5e1eb2fa7a
2 changed files with 13 additions and 38 deletions

View File

@@ -1,35 +1,8 @@
steps:
test:
image: python:3.11
commands:
- pip install -r requirements.txt
- pytest -q
build:
image: docker:27-cli
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
IMAGE: flask-demo:latest
commands:
- docker build -t $IMAGE .
deploy:
image: docker:27-cli
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker compose up -d
when:
event:
- push
branch:
- main
# объявление хостового тома для монтирования docker.sock
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
version: "3.8"
services:
web:
image: flask-demo:latest
container_name: flask-demo
ports:
- "8888:8888"
restart: unless-stopped