feat: add Docker deployment configuration
This commit is contained in:
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user