File tree Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,10 @@ DATABASE_URL="postgresql+asyncpg://postgres:postgres@postgres:5432/bookly"
8
8
9
9
BCRYPT_ROUND = 16
10
10
11
+ MAILPIT_USER = " mailpit"
12
+ MAILPIT_PASSWORD = " mailpit"
13
+ MAILPIT_SERVER = " mailpit"
14
+ MAILPIT_PORT = 1025
15
+
11
16
JWT_SECRET = " 0d6dfd6448e6a1ee48dcb8e090618cf8c37dc046e8169698d22383510c8e70f3"
12
17
JWT_ALGORITHM = " HS256"
Original file line number Diff line number Diff line change
1
+ MAILPIT_USER = " mailpit"
2
+ MAILPIT_PASSWORD = " mailpit"
3
+ MAILPIT_SMTP_PORT = 1025
4
+ MAILPIT_HTTP_PORT = 8025
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ services:
21
21
postgres :
22
22
image : postgres:16
23
23
container_name : postgres
24
- ports :
25
- - " 5432:5432"
26
24
volumes :
27
25
- postgres_data:/var/lib/postgresql/data
28
26
env_file :
@@ -36,9 +34,22 @@ services:
36
34
start_period : 10s
37
35
timeout : 10s
38
36
37
+ mailpit :
38
+ image : axllent/mailpit:latest
39
+ container_name : mailpit
40
+ ports :
41
+ - " 8025:8025"
42
+ volumes :
43
+ - mailpit_data:/data
44
+ env_file :
45
+ - ./.envs/.mailpit.env
46
+ networks :
47
+ - backend_network
48
+
39
49
networks :
40
50
backend_network :
41
51
driver : bridge
42
52
43
53
volumes :
44
54
postgres_data :
55
+ mailpit_data :
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ class Settings(BaseSettings):
12
12
13
13
BCRYPT_ROUND : int = Field (..., env = "BCRYPT_ROUND" )
14
14
15
+ MAILPIT_USER : str = Field (..., env = "MAILPIT_USER" )
16
+ MAILPIT_PASSWORD : str = Field (..., env = "MAILPIT_PASSWORD" )
17
+ MAILPIT_SERVER : str = Field (..., env = "MAILPIT_SERVER" )
18
+ MAILPIT_PORT : int = Field (..., env = "MAILPIT_PORT" )
19
+
15
20
JWT_SECRET : str = Field (..., env = "JWT_SECRET" )
16
21
JWT_ALGORITHM : str = Field (..., env = "JWT_ALGORITHM" )
17
22
You can’t perform that action at this time.
0 commit comments