Revert "repo move"
This reverts commit 2ee2af37582b35b5105a6bb2bb159e4e5353f4a8.
This commit is contained in:
		
							parent
							
								
									2ee2af3758
								
							
						
					
					
						commit
						1a73330ea7
					
				
							
								
								
									
										20
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
FROM golang:alpine as builder
 | 
			
		||||
 | 
			
		||||
RUN apk --update upgrade && \
 | 
			
		||||
    apk --no-cache --no-progress add git
 | 
			
		||||
 | 
			
		||||
ENV GO111MODULE on
 | 
			
		||||
 | 
			
		||||
RUN git clone https://github.com/emersion/hydroxide/ /hydroxide
 | 
			
		||||
 | 
			
		||||
WORKDIR /hydroxide
 | 
			
		||||
RUN go build ./cmd/hydroxide
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM alpine:latest
 | 
			
		||||
 | 
			
		||||
WORKDIR /hydroxide
 | 
			
		||||
COPY --from=builder /hydroxide/hydroxide .
 | 
			
		||||
 | 
			
		||||
ENV XDG_CONFIG_HOME /.config
 | 
			
		||||
ENTRYPOINT [ "/hydroxide/hydroxide", "-smtp-host", "0.0.0.0" ]
 | 
			
		||||
							
								
								
									
										59
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										59
									
								
								README.md
									
									
									
									
									
								
							@ -1 +1,58 @@
 | 
			
		||||
This repository has a new home: https://git.okki.hu/garric/hydroxide-docker.
 | 
			
		||||
# hydroxide docker
 | 
			
		||||
 | 
			
		||||
This image is used for `okki.hu` services to provide a proton based smtp server. It is based on [hydroxide](https://github.com/emersion/hydroxide) - a lightweight proton bridge implementation.
 | 
			
		||||
 | 
			
		||||
# usage
 | 
			
		||||
 | 
			
		||||
## fetch the image
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
docker pull garric/hydroxide-docker
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## config dir
 | 
			
		||||
 | 
			
		||||
Create a config dir on the host, we will use this for most of the commands to mount as a volume:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
mkdir -p $HOME/.config/hydroxide
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## authenticate
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
docker run -it \
 | 
			
		||||
  -v $HOME/.config/hydroxide:/.config/hydroxide \
 | 
			
		||||
  hydroxide auth <proton_username>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Store the printed bridge password __securely__.
 | 
			
		||||
 | 
			
		||||
## verify login status
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
docker run -it \
 | 
			
		||||
  -v $HOME/.config/hydroxide:/.config/hydroxide \
 | 
			
		||||
  hydroxide status
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## smtp server
 | 
			
		||||
 | 
			
		||||
The following command starts the smtp server on port 1025 as an always running daemon:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
docker run -d --name hydroxide \
 | 
			
		||||
  --restart unless-stopped \
 | 
			
		||||
  -v $HOME/.config/hydroxide:/.config/hydroxide \
 | 
			
		||||
  -p 1025:1025 \
 | 
			
		||||
  hydroxide smtp
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# requirements
 | 
			
		||||
 | 
			
		||||
   * proton paid subscription
 | 
			
		||||
   * docker
 | 
			
		||||
 | 
			
		||||
# security notes
 | 
			
		||||
 | 
			
		||||
Do __NOT__ expose the smtp port to the public world. It is insecure, and only intended for intranet usage.
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user