Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit

Permalink
Coonfigure SMTP.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibz committed Feb 29, 2024
1 parent d385de1 commit d09ebd1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: '3.6'

services:
smtp:
environment:
- ALLOWED_SENDER_DOMAINS=plebeian.market
web:
build:
args:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
smtp:
ports:
- "1587:587"
environment:
- ALLOWED_SENDER_DOMAINS=staging.plebeian.market
api:
healthcheck:
test: ["CMD", "curl", "-f", "https://staging.plebeian.market/api/status"]
Expand Down
15 changes: 14 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ ! -f plebeian-market-secrets/lndhub.json ]; then
echo "{\"LNDHUB_URL\": \"https://ln.getalby.com\", \"LNDHUB_USER\": \"TODO\", \"LNDHUB_PASSWORD\": \"TODO\"}" > plebeian-market-secrets/lndhub.json
fi
if [ ! -f plebeian-market-secrets/mail.json ]; then
echo "{\"server\": \"TODO\", \"username\": \"TODO\", \"password\": \"TODO\", \"default_sender\": \"hello@$DOMAIN_NAME\"}" > plebeian-market-secrets/mail.json
echo "{\"server\": \"smtp\", \"username\": \"\", \"password\": \"\", \"default_sender\": \"hello@$DOMAIN_NAME\"}" > plebeian-market-secrets/mail.json
fi

cd && mkdir -p plebeian-market-state/media
Expand All @@ -76,6 +76,7 @@ EOF
echo "DOMAIN_NAME=$DOMAIN_NAME" >> .env
echo "WWW_BASE_URL=https://$DOMAIN_NAME" >> .env
echo "API_BASE_URL=https://$DOMAIN_NAME" >> .env
echo "ALLOWED_SENDER_DOMAINS=$DOMAIN_NAME" >> .env
fi

cd && mkdir -p plebeian-market-nginx
Expand Down Expand Up @@ -197,13 +198,22 @@ services:
- "7777:7777"
volumes:
- "./plebeian-market-relaydata:/app/strfry-db"
smtp:
image: ghcr.io/plebeiantech/plebeian-market-smtp
restart: always
networks:
- smtp_network
ports:
- "1587:587"
env_file: .env
api:
image: ghcr.io/plebeiantech/plebeian-market-api
depends_on: [db]
restart: always
stop_grace_period: 1m
networks:
- db_network
- smtp_network
- web_network
volumes:
- "./plebeian-market-secrets:/secrets"
Expand All @@ -229,6 +239,7 @@ services:
stop_grace_period: 1m
networks:
- db_network
- smtp_network
volumes:
- "./plebeian-market-secrets:/secrets"
- "./plebeian-market-state:/state"
Expand Down Expand Up @@ -275,6 +286,8 @@ services:
networks:
db_network:
driver: bridge
smtp_network:
driver: bridge
web_network:
driver: bridge
Expand Down

0 comments on commit d09ebd1

Please sign in to comment.