Skip to content

Commit 6eae80d

Browse files
committed
fix
1 parent 7cd42c9 commit 6eae80d

1 file changed

Lines changed: 4 additions & 19 deletions

File tree

compose-production.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ services:
99
- "127.0.0.1:${APP_PORT:-8445}:8000"
1010
command: gunicorn --bind 0.0.0.0:8000 app:app
1111
healthcheck:
12-
# FIX 1: Was hitting /apidocs/ but the app is mounted under /smartsfilter prefix
1312
test: ["CMD", "curl", "-f", "http://localhost:8000/smartsfilter/apidocs/"]
1413
interval: 30s
1514
timeout: 10s
@@ -21,23 +20,9 @@ services:
2120
memory: 4G
2221

2322
ui:
24-
restart: unless-stopped
23+
restart: "no"
2524
image: unmtransinfo/smartsfilter_ui:latest
2625
container_name: smartsfilter-ui
27-
environment:
28-
- VITE_API_PROXY_TARGET=http://api:8000
29-
ports:
30-
- "127.0.0.1:${UI_PORT:-5173}:5173"
31-
depends_on:
32-
api:
33-
condition: service_healthy
34-
healthcheck:
35-
test: ["CMD-SHELL", "curl -f http://localhost:5173/ || exit 1"]
36-
interval: 30s
37-
timeout: 10s
38-
retries: 3
39-
deploy:
40-
resources:
41-
limits:
42-
cpus: "2"
43-
memory: 4G
26+
volumes:
27+
- /var/www/smartsfilter:/app/dist-out
28+
command: sh -c "cp -r /app/dist/. /app/dist-out/ && echo 'UI dist ready'"

0 commit comments

Comments
 (0)