Compare commits
No commits in common. "main" and "0.0.1" have entirely different histories.
|
|
@ -1,20 +1,20 @@
|
||||||
services:
|
services:
|
||||||
web:
|
www-dev:
|
||||||
image: nginx:alpine
|
image: node:20-alpine
|
||||||
container_name: www-ai
|
container_name: www-local-ai
|
||||||
restart: always
|
working_dir: /app
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:80/"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 3
|
|
||||||
start_period: 10s
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./html:/usr/share/nginx/html
|
- ./src:/app
|
||||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
- node_modules:/app/node_modules
|
||||||
|
ports:
|
||||||
|
- "6173:5173"
|
||||||
|
command: sh -c "npm install && npm run dev -- --hostname 0.0.0.0"
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- devnet
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
node_modules:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
devnet:
|
||||||
external: true
|
driver: bridge
|
||||||
|
|
|
||||||
12
nginx.conf
12
nginx.conf
|
|
@ -1,12 +0,0 @@
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name localhost;
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri.html $uri/ /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
error_page 404 /404.html;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue