Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Publish Python 🐍 distribution to PyPI

on:
push:
branches:
- main
tags:
- 'v*.*.*'

Expand Down
12 changes: 12 additions & 0 deletions appwrite_lab/_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,18 @@ def deploy_appwrite_lab(
cmd_res = self._deploy_service(
project=name, template_path=template_path, env_vars=env_vars
)

# Deploy mail server (mailpit)
mailpit_template_path = (
Path(__file__).parent
/ "templates"
/ "extras"
/ "mailpit"
/ "docker_compose.yml"
)
self._deploy_service(
project=name, template_path=mailpit_template_path, env_vars={}
)
# if CLI, will throw error in actual Response object
if type(cmd_res) is Response and cmd_res.error:
return cmd_res
Expand Down
4 changes: 2 additions & 2 deletions appwrite_lab/templates/environment/dotenv
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ _APP_INFLUXDB_HOST=influxdb
_APP_INFLUXDB_PORT=8086
_APP_STATSD_HOST=telegraf
_APP_STATSD_PORT=8125
_APP_SMTP_HOST=
_APP_SMTP_PORT=
_APP_SMTP_HOST=mailpit
_APP_SMTP_PORT=1025
_APP_SMTP_SECURE=
_APP_SMTP_USERNAME=
_APP_SMTP_PASSWORD=
Expand Down
16 changes: 16 additions & 0 deletions appwrite_lab/templates/extras/mailpit/docker_compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
mailpit:
image: axllent/mailpit:latest
container_name: mailpit
ports:
- "1025:1025" # SMTP port
- "8025:8025" # Web UI
networks:
- appwrite
restart: unless-stopped


networks:
appwrite:
name: appwrite
external: true
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "appwrite-lab"
version = "0.1.0"
version = "0.1.1"
description = "Zero-click Appwrite test environments."
readme = "README.md"
requires-python = ">=3.11"
Expand Down
Loading
Loading