Skip to content

Commit

Permalink
Add postfix to our environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibz committed Feb 29, 2024
1 parent 8a2368f commit 67d0c86
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,28 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata (smtp)
id: meta-smtp
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/plebeiantech/plebeian-market-smtp

# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image (smtp)
id: build-and-push-smtp
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: ./
file: ./services/postfix/Dockerfile
push: true
tags: ${{ steps.meta-relay.outputs.tags }}
labels: ${{ steps.meta-relay.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata (api)
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ services:
type: tmpfs
ports:
- "7777:7777"
smtp:
ports:
- "1587:587"
api:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/status"]
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ services:
- "7777:7777"
networks:
- proxy
smtp:
ports:
- "1587:587"
api:
healthcheck:
test: ["CMD", "curl", "-f", "https://staging.plebeian.market/api/status"]
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ services:
restart: always
networks:
- relay_network
smtp:
build:
context: ./
dockerfile: ./services/postfix/Dockerfile
restart: always
networks:
- smtp_network
api:
build:
context: ./
Expand All @@ -26,6 +33,7 @@ services:
networks:
- db_network
- proxy
- smtp_network
finalize-auctions:
build:
context: ./
Expand All @@ -46,6 +54,7 @@ services:
stop_grace_period: 1m
networks:
- db_network
- smtp_network
settle-lightning-payments:
build:
context: ./
Expand All @@ -56,6 +65,7 @@ services:
stop_grace_period: 30s
networks:
- db_network
- smtp_network
birdwatcher:
build:
context: ./
Expand All @@ -70,5 +80,7 @@ networks:
driver: bridge
relay_network:
driver: bridge
smtp_network:
driver: bridge
proxy:
driver: bridge
1 change: 1 addition & 0 deletions services/postfix/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM boky/postfix:latest

0 comments on commit 67d0c86

Please sign in to comment.