summaryrefslogtreecommitdiff
path: root/compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'compose.yml')
-rw-r--r--compose.yml27
1 files changed, 25 insertions, 2 deletions
diff --git a/compose.yml b/compose.yml
index e5f008b..daf3ba7 100644
--- a/compose.yml
+++ b/compose.yml
@@ -1,7 +1,30 @@
services:
website:
- build: website
+ build:
+ context: website
+ env_file:
+ - .env
+ environment:
+ LOCAL_SMTP_HOST: smtp
+ LOCAL_SMTP_PORT: 2500
+ LOCAL_SMTP_PASSWORD: smtp
ports:
- "8000:4321"
+
smtp:
- build: smtp
+ build:
+ context: smtp
+ args:
+ LOCAL_SMTP_PORT: 2500
+ env_file:
+ - .env
+ environment:
+ LOCAL_SMTP_PORT: 2500
+ LOCAL_SMTP_PASSWORD: smtp
+ REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password
+ secrets:
+ - remote_smtp_password
+
+secrets:
+ remote_smtp_password:
+ external: true