You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/publish/projects/nmwh/docker-compose.prod.yml

23 lines
717 B

#docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
#docker-compose down --remove-orphans
version: "3.8"
services:
iotcenter:
image: mcr.microsoft.com/dotnet/core/runtime-deps:3.1-focal
restart: always
environment:
- TZ=Asia/Shanghai
- ASPNETCORE_ENVIRONMENT=Docker
command: bash -c "chmod +x /IoTCenter/IoTCenter && cd /IoTCenter && ./IoTCenter"
depends_on:
- mysql
- redis
ports:
- 8011:80
volumes:
- ./apps/IoTCenter:/IoTCenter
- ./docker/log/IoTCenter:/IotCenter/logs
networks:
default:
ipv4_address: 172.172.0.80