-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# docker-compose.yml – Face-Recon development stack
#
# Usage:
# docker compose up # start all services
# docker compose up --build # rebuild images first
# docker compose down # stop and remove containers
version: "3.9"
services:
# -----------------------------------------------------------------------
# Backend – Flask REST API
# -----------------------------------------------------------------------
backend:
build:
context: .
dockerfile: Dockerfile
container_name: face-recon-backend
ports:
- "5000:5000"
volumes:
# Persist the SQLite database and face data between restarts
- face_data:/app/data
- face_logs:/app/logs
environment:
FLASK_ENV: development
restart: unless-stopped
# -----------------------------------------------------------------------
# Frontend – static files served via Nginx
# -----------------------------------------------------------------------
frontend:
image: nginx:alpine
container_name: face-recon-frontend
ports:
- "8080:80"
volumes:
- ./frontend:/usr/share/nginx/html:ro
depends_on:
- backend
restart: unless-stopped
# -----------------------------------------------------------------------
# Named volumes
# -----------------------------------------------------------------------
volumes:
face_data:
face_logs: