version: '3.2'
services:
nodeserver:
build:
context: .
ports:
- '5000:5000'
nginx:
restart: always
build:
context: ./nginx
ports:
- '80:80'
logging:
driver: awslogs
options:
awslogs-region: ap-south-1
version: '3.2'
services:
nodeserver:
build:
context: .
ports:
- '5000:5000'
nginx:
restart: always
build:
context: ./nginx
ports:
- '80:80'
logging:
driver: awslogs
options:
awslogs-region: ap-south-1
1条答案
按热度按时间qgelzfjb1#
logging
是服务上的键,而不是services
对象上的键。将
logging
块的缩进增加1层。