feat(deploy): Docker Compose production + script désinstallation
- docker-compose.yml : healthcheck, réseau interne, volumes nommés - docker-compose.dev.yml : profil développement (logs debug, restart no) - install/uninstall.sh : arrêt service, suppression binaire + config + unit Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+19
-1
@@ -1,14 +1,32 @@
|
||||
services:
|
||||
backend:
|
||||
build: ./backend
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
image: sentinelmesh-backend:latest
|
||||
container_name: sentinelmesh-backend
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- sentinelmesh-data:/data
|
||||
environment:
|
||||
DATABASE_URL: sqlite:///data/sentinelmesh.sqlite
|
||||
LISTEN_ADDR: 0.0.0.0:8080
|
||||
RUST_LOG: info
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:8080/api/v1/health"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
networks:
|
||||
- sentinelmesh
|
||||
|
||||
networks:
|
||||
sentinelmesh:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
sentinelmesh-data:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user