feat: add Docker deployment configuration

This commit is contained in:
sokol
2026-02-18 23:12:11 +03:00
parent 18193b71c1
commit 0fe61acfe7
6 changed files with 603 additions and 0 deletions

34
docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
version: '3.8'
services:
configucci:
build:
context: .
dockerfile: Dockerfile
args:
GIT_URL: https://git.six83.ru/ssa/configucci.git
GIT_BRANCH: ai
container_name: configucci-app
ports:
- "80:80"
restart: unless-stopped
networks:
- configucci-network
volumes:
# Optional: persist nginx logs
- nginx-logs:/var/log/nginx
environment:
- TZ=Europe/Moscow
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
configucci-network:
driver: bridge
volumes:
nginx-logs: