dotfiles/vscode/.vscode/extensions/ms-azuretools.vscode-docker-1.29.1/resources/templates/python/docker-compose.debug.yml.template
2024-08-02 10:42:24 -06:00

20 lines
592 B
Plaintext

version: '3.4'
services:
{{ serviceName }}:
image: {{ serviceName }}
build:
context: {{ workspaceRelative . dockerBuildContext }}
dockerfile: {{ contextRelative . dockerfileDirectory }}/Dockerfile
command: {{{ toQuotedArray pythonDebugCmdParts }}}
{{#if (join ports debugPorts)}}
ports:
{{#each (join ports debugPorts)}}
- {{ . }}:{{ . }}
{{/each}}
{{/if}}
{{#if (eq platform 'Python: Flask')}}
environment:
- FLASK_APP={{#if pythonArtifact.file}}{{ pythonArtifact.file }}{{else}}-m {{ pythonArtifact.module }}{{/if}}
{{/if}}