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