docker-apipolo/docker-compose.yml
2024-10-23 12:07:58 +02:00

12 lines
497 B
YAML

services:
api:
image: mcr.microsoft.com/dotnet/aspnet:6.0 # Use the official .NET runtime image
volumes:
- ./app:/app # Mount the locally published files into the container
- ./config/openssl.cnf:/etc/ssl/openssl.cnf:ro
ports:
- "40000:80" # Map port 80 in the container to port 8080 on the host
restart: always
working_dir: /app # Set the working directory in the container
command: ["dotnet", "ApiSoftway.dll"] # Replace with your app's DLL name