更新 docker-compose.yml
This commit is contained in:
@ -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
|
|
||||||
Reference in New Issue
Block a user