Skip to content

Commit a26bc65

Browse files
committed
Add Plunk template
1 parent 69fc4c7 commit a26bc65

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

public/svgs/plunk.svg

Lines changed: 1 addition & 0 deletions
Loading

templates/compose/plunk.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# documentation: https://docs.useplunk.com
2+
# slogan: Plunk, The Open-Source Email Platform for AWS
3+
# tags: plunk,email,automation,aws
4+
# logo: svgs/plunk.png
5+
# port: 3000
6+
7+
version: '3'
8+
services:
9+
plunk:
10+
image: driaug/plunk
11+
depends_on:
12+
postgresql:
13+
condition: service_healthy
14+
redis:
15+
condition: service_started
16+
environment:
17+
- SERVICE_FQDN_PLUNK_3000
18+
- REDIS_URL=redis://redis:6379
19+
- DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgresql/docmost?schema=public
20+
- JWT_SECRET=${SERVICE_PASSWORD_JWT_SECRET}
21+
- AWS_REGION=${AWS_REGION}
22+
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
23+
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
24+
- AWS_SES_CONFIGURATION_SET=${AWS_SES_CONFIGURATION_SET}
25+
- NEXT_PUBLIC_API_URI=${SERVICE_FQDN_PLUNK}/api
26+
- APP_URI=${SERVICE_FQDN_PLUNK}
27+
- API_URI=${SERVICE_FQDN_PLUNK}/api
28+
- DISABLE_SIGNUPS=False
29+
entrypoint: [ "/app/entry.sh" ]
30+
healthcheck:
31+
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000"]
32+
interval: 2s
33+
timeout: 10s
34+
retries: 15
35+
postgresql:
36+
image: postgres:16-alpine
37+
environment:
38+
- POSTGRES_USER=$SERVICE_USER_POSTGRES
39+
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
40+
- POSTGRES_DB=${POSTGRES_DB:-plunk}
41+
volumes:
42+
- postgresql-data:/var/lib/postgresql/data
43+
healthcheck:
44+
test: [ "CMD-SHELL", "pg_isready -U postgres -d postgres" ]
45+
interval: 5s
46+
timeout: 10s
47+
retries: 20
48+
redis:
49+
image: "redis:7.4-alpine"
50+
volumes:
51+
- "redis-data:/data"
52+
healthcheck:
53+
test:
54+
- CMD
55+
- redis-cli
56+
- PING
57+
interval: 5s
58+
timeout: 10s
59+
retries: 20

0 commit comments

Comments
 (0)