You've already forked dockerfiles
							
							
				mirror of
				https://github.com/vimagick/dockerfiles.git
				synced 2025-10-30 23:47:48 +02:00 
			
		
		
		
	update mailhog
This commit is contained in:
		| @@ -7,7 +7,7 @@ mailhog | ||||
| - View messages in the web UI, or retrieve them with the JSON API | ||||
| - Optionally release messages to real SMTP servers for delivery | ||||
|  | ||||
| ``` | ||||
| ```bash | ||||
| $ mkdir data | ||||
| $ chown 1000:1000 data | ||||
| $ docker-compose up -d | ||||
|   | ||||
							
								
								
									
										11
									
								
								mailhog/data/outgoing-smtp.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								mailhog/data/outgoing-smtp.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| { | ||||
|   "gmail": { | ||||
|     "name": "gmail", | ||||
|     "host": "smtp.gmail.com", | ||||
|     "port": "587", | ||||
|     "email": "username@gmail.com", | ||||
|     "username": "username", | ||||
|     "password": "password", | ||||
|     "mechanism": "PLAIN" | ||||
|   } | ||||
| } | ||||
| @@ -4,10 +4,11 @@ services: | ||||
|     image: mailhog/mailhog | ||||
|     ports: | ||||
|       - "1025:1025" | ||||
|       - "9025:8025" | ||||
|       - "8025:8025" | ||||
|     volumes: | ||||
|       - ./data:/data | ||||
|     environment: | ||||
|       - MH_STORAGE=maildir | ||||
|       - MH_MAILDIR_PATH=/data | ||||
|       - MH_OUTGOING_SMTP=/data/outgoing-smtp.json | ||||
|     restart: unless-stopped | ||||
|   | ||||
		Reference in New Issue
	
	Block a user