File tree Expand file tree Collapse file tree 6 files changed +277
-3
lines changed
Expand file tree Collapse file tree 6 files changed +277
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Publish Python 🐍 distribution to PyPI
22
33on :
44 push :
5+ branches :
6+ - main
57 tags :
68 - ' v*.*.*'
79
Original file line number Diff line number Diff line change @@ -207,6 +207,18 @@ def deploy_appwrite_lab(
207207 cmd_res = self ._deploy_service (
208208 project = name , template_path = template_path , env_vars = env_vars
209209 )
210+
211+ # Deploy mail server (mailpit)
212+ mailpit_template_path = (
213+ Path (__file__ ).parent
214+ / "templates"
215+ / "extras"
216+ / "mailpit"
217+ / "docker_compose.yml"
218+ )
219+ self ._deploy_service (
220+ project = name , template_path = mailpit_template_path , env_vars = {}
221+ )
210222 # if CLI, will throw error in actual Response object
211223 if type (cmd_res ) is Response and cmd_res .error :
212224 return cmd_res
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ _APP_INFLUXDB_HOST=influxdb
5050_APP_INFLUXDB_PORT=8086
5151_APP_STATSD_HOST=telegraf
5252_APP_STATSD_PORT=8125
53- _APP_SMTP_HOST=
54- _APP_SMTP_PORT=
53+ _APP_SMTP_HOST=mailpit
54+ _APP_SMTP_PORT=1025
5555_APP_SMTP_SECURE=
5656_APP_SMTP_USERNAME=
5757_APP_SMTP_PASSWORD=
Original file line number Diff line number Diff line change 1+ services :
2+ mailpit :
3+ image : axllent/mailpit:latest
4+ container_name : mailpit
5+ ports :
6+ - " 1025:1025" # SMTP port
7+ - " 8025:8025" # Web UI
8+ networks :
9+ - appwrite
10+ restart : unless-stopped
11+
12+
13+ networks :
14+ appwrite :
15+ name : appwrite
16+ external : true
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " appwrite-lab"
7- version = " 0.1.0 "
7+ version = " 0.1.1 "
88description = " Zero-click Appwrite test environments."
99readme = " README.md"
1010requires-python = " >=3.11"
You can’t perform that action at this time.
0 commit comments