mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
there we go.
This commit is contained in:
parent
7ef9657e54
commit
d483aa120b
@ -37,12 +37,17 @@ To initialize and add account to the bridge, run the following steps:
|
||||
```
|
||||
docker run -it -v protonmail:/root shenxn/protonmail-bridge
|
||||
```
|
||||
2. When you are done, press `CTRL+P` followed by `CTRL+Q`. This detaches the container from your terminal and keeps it running in the background.
|
||||
|
||||
## Setting up the bridge
|
||||
|
||||
If you have not set up an account, you need to do the folliwing steps in the protonmail-bridge CLI interface:
|
||||
1. Use the `add` command to add your ProtonMail account. You will be prompted to enter your ProtonMail username and password.
|
||||
2. After adding your account, use the `info` command to see the configuration information (username and password).
|
||||
1. Connect to the running container by getting it's name using `docker ps` and then running:
|
||||
```
|
||||
docker attach <container_name>
|
||||
```
|
||||
2. Use the `add` command to add your ProtonMail account. You will be prompted to enter your ProtonMail username and password.
|
||||
3. After adding your account, use the `info` command to see the configuration information (username and password).
|
||||
|
||||
## Security
|
||||
|
||||
|
||||
@ -64,3 +64,5 @@ jq '.Settings.AutoUpdate = (env.PROTONMAIL_AutoUpdate | if . == "true" then true
|
||||
# Start protonmail
|
||||
echo "Starting ProtonMail Bridge. Connect to the CLI with `docker exec -it <container_name>` and type 'help' for instructions."
|
||||
/protonmail/proton-bridge --cli $@
|
||||
echo "ProtonMail bridge stopped. waiting 30 seconds before exiting in order to preserve the logs."
|
||||
sleep 30 # so we have time to read the logs in case of a crash loop
|
||||
@ -1,14 +1,19 @@
|
||||
version: '2.1'
|
||||
|
||||
services:
|
||||
protonmail-bridge:
|
||||
image: shenxn/protonmail-bridge
|
||||
container_name: protonmail-bridge
|
||||
ports:
|
||||
- 1025:25/tcp
|
||||
- 1143:143/tcp
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- protonmail:/root
|
||||
stdin_open: true
|
||||
tty: true
|
||||
logging:
|
||||
options:
|
||||
max-size: "1m"
|
||||
max-file: "10"
|
||||
volumes:
|
||||
protonmail:
|
||||
name: protonmail
|
||||
|
||||
Loading…
Reference in New Issue
Block a user