#this file contains the shard service for both development and production services #nginx mysql srs influxdb #https://docs.docker.com/compose/compose-file/ version: "3.8" services: web: image: nginx:1.18 #https://hub.docker.com/_/nginx volumes: - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf - ./nginx/conf/edusoa.key:/etc/nginx/edusoa.key - ./nginx/conf/edusoa.pem:/etc/nginx/edusoa.pem - ./nginx/log:/var/log/nginx ports: - 80:80 - 443:443 usercenter: image: mcr.microsoft.com/dotnet/core/runtime-deps:3.1-focal container_name: usercenter volumes: - ./UserCenter:/UserCenter command: bash -c " chmod +x /UserCenter/UserCenter && cd /UserCenter && ./UserCenter "