diff --git a/delivery/ansible/templates/compose.yaml.j2 b/delivery/ansible/templates/compose.yaml.j2 --- a/delivery/ansible/templates/compose.yaml.j2 +++ b/delivery/ansible/templates/compose.yaml.j2 @@ -1,6 +1,9 @@ services: app: image: "{{ release_image }}" +{% if target_env == 'staging' %} + command: ["gunicorn", "--bind", "0.0.0.0:8001", "--workers", "1", "--worker-tmp-dir", "/tmp", "app:app"] +{% endif %} restart: unless-stopped read_only: true tmpfs: