mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
commit
0121806301
@ -121,6 +121,7 @@ Create a directory to store SimpleLogin data:
|
|||||||
mkdir sl
|
mkdir sl
|
||||||
mkdir sl/pgp # to store PGP key
|
mkdir sl/pgp # to store PGP key
|
||||||
mkdir sl/db # to store database
|
mkdir sl/db # to store database
|
||||||
|
mkdir sl/upload # to store quarantine emails
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -469,7 +470,7 @@ FLASK_SECRET=put_something_secret_here
|
|||||||
|
|
||||||
GNUPGHOME=/sl/pgp
|
GNUPGHOME=/sl/pgp
|
||||||
|
|
||||||
LOCAL_FILE_UPLOAD=true
|
LOCAL_FILE_UPLOAD=1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -479,6 +480,7 @@ Before running the webapp, you need to prepare the database by running the migra
|
|||||||
sudo docker run --rm \
|
sudo docker run --rm \
|
||||||
--name sl-migration \
|
--name sl-migration \
|
||||||
-v $(pwd)/sl:/sl \
|
-v $(pwd)/sl:/sl \
|
||||||
|
-v $(pwd)/sl/upload:/code/static/upload \
|
||||||
-v $(pwd)/dkim.key:/dkim.key \
|
-v $(pwd)/dkim.key:/dkim.key \
|
||||||
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
||||||
-v $(pwd)/simplelogin.env:/code/.env \
|
-v $(pwd)/simplelogin.env:/code/.env \
|
||||||
@ -507,6 +509,7 @@ Now, it's time to run the `webapp` container!
|
|||||||
sudo docker run -d \
|
sudo docker run -d \
|
||||||
--name sl-app \
|
--name sl-app \
|
||||||
-v $(pwd)/sl:/sl \
|
-v $(pwd)/sl:/sl \
|
||||||
|
-v $(pwd)/sl/upload:/code/static/upload \
|
||||||
-v $(pwd)/simplelogin.env:/code/.env \
|
-v $(pwd)/simplelogin.env:/code/.env \
|
||||||
-v $(pwd)/dkim.key:/dkim.key \
|
-v $(pwd)/dkim.key:/dkim.key \
|
||||||
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
||||||
@ -522,6 +525,7 @@ Next run the `email handler`
|
|||||||
sudo docker run -d \
|
sudo docker run -d \
|
||||||
--name sl-email \
|
--name sl-email \
|
||||||
-v $(pwd)/sl:/sl \
|
-v $(pwd)/sl:/sl \
|
||||||
|
-v $(pwd)/sl/upload:/code/static/upload \
|
||||||
-v $(pwd)/simplelogin.env:/code/.env \
|
-v $(pwd)/simplelogin.env:/code/.env \
|
||||||
-v $(pwd)/dkim.key:/dkim.key \
|
-v $(pwd)/dkim.key:/dkim.key \
|
||||||
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
||||||
|
@ -131,10 +131,14 @@ sudo docker stop sl-email sl-migration sl-app
|
|||||||
# Make sure to remove these containers to avoid conflict
|
# Make sure to remove these containers to avoid conflict
|
||||||
sudo docker rm -f sl-email sl-migration sl-app
|
sudo docker rm -f sl-email sl-migration sl-app
|
||||||
|
|
||||||
|
# create ./sl/upload/ if not exist
|
||||||
|
mkdir -p ./sl/upload/
|
||||||
|
|
||||||
# Run the database migration
|
# Run the database migration
|
||||||
sudo docker run --rm \
|
sudo docker run --rm \
|
||||||
--name sl-migration \
|
--name sl-migration \
|
||||||
-v $(pwd)/sl:/sl \
|
-v $(pwd)/sl:/sl \
|
||||||
|
-v $(pwd)/sl/upload:/code/static/upload \
|
||||||
-v $(pwd)/dkim.key:/dkim.key \
|
-v $(pwd)/dkim.key:/dkim.key \
|
||||||
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
||||||
-v $(pwd)/simplelogin.env:/code/.env \
|
-v $(pwd)/simplelogin.env:/code/.env \
|
||||||
@ -145,6 +149,7 @@ sudo docker run --rm \
|
|||||||
sudo docker run --rm \
|
sudo docker run --rm \
|
||||||
--name sl-init \
|
--name sl-init \
|
||||||
-v $(pwd)/sl:/sl \
|
-v $(pwd)/sl:/sl \
|
||||||
|
-v $(pwd)/sl/upload:/code/static/upload \
|
||||||
-v $(pwd)/simplelogin.env:/code/.env \
|
-v $(pwd)/simplelogin.env:/code/.env \
|
||||||
-v $(pwd)/dkim.key:/dkim.key \
|
-v $(pwd)/dkim.key:/dkim.key \
|
||||||
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
||||||
@ -155,6 +160,7 @@ sudo docker run --rm \
|
|||||||
sudo docker run -d \
|
sudo docker run -d \
|
||||||
--name sl-app \
|
--name sl-app \
|
||||||
-v $(pwd)/sl:/sl \
|
-v $(pwd)/sl:/sl \
|
||||||
|
-v $(pwd)/sl/upload:/code/static/upload \
|
||||||
-v $(pwd)/simplelogin.env:/code/.env \
|
-v $(pwd)/simplelogin.env:/code/.env \
|
||||||
-v $(pwd)/dkim.key:/dkim.key \
|
-v $(pwd)/dkim.key:/dkim.key \
|
||||||
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
||||||
@ -167,6 +173,7 @@ sudo docker run -d \
|
|||||||
sudo docker run -d \
|
sudo docker run -d \
|
||||||
--name sl-email \
|
--name sl-email \
|
||||||
-v $(pwd)/sl:/sl \
|
-v $(pwd)/sl:/sl \
|
||||||
|
-v $(pwd)/sl/upload:/code/static/upload \
|
||||||
-v $(pwd)/simplelogin.env:/code/.env \
|
-v $(pwd)/simplelogin.env:/code/.env \
|
||||||
-v $(pwd)/dkim.key:/dkim.key \
|
-v $(pwd)/dkim.key:/dkim.key \
|
||||||
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
|
||||||
|
Loading…
Reference in New Issue
Block a user