更新 docker-compose.yml

This commit is contained in:
ywp
2025-10-22 15:03:24 +08:00
parent b6016d5f3e
commit edf741f46d

View File

@ -1,21 +1,13 @@
version: '3' version: '3.8'
services: services:
app: webapp:
build: build: .
context: . container_name: node-nginx-app
dockerfile: Dockerfile
container_name: kinlim-time-effectiveness
restart: always
ports: ports:
- "9800:9800" - "8080:80"
environment: environment:
- NODE_ENV=production - NODE_ENV=production
volumes: volumes:
- ./.env:/app/.env - ./nginx.conf:/etc/nginx/nginx.conf:ro
networks: restart: unless-stopped
- app-network
networks:
app-network:
driver: bridge