This repository has been archived by the owner on Dec 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from mojtaba-naseri/master
Features, fix bug, maintenance with developer Docker package
- Loading branch information
Showing
32 changed files
with
1,515 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
deployment/docker/dockers/docker-compose_dev_with_nginx.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
version: "3.9" | ||
|
||
services: | ||
mishka_nginx: | ||
image: nginx:1.20.1-alpine | ||
container_name: mishka_nginx | ||
restart: always | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
networks: | ||
netowrk: | ||
volumes: | ||
- ../etc/nginx/conf/:/etc/nginx/ | ||
- ../etc/nginx/cache:/var/nginx/cache | ||
- ../etc/ssl/dev:/etc/ssl/dev:ro | ||
- ../etc/ssl/letsencrypt:/etc/ssl/letsencrypt:ro | ||
- /etc/localtime:/etc/localtime:ro | ||
depends_on: | ||
- mishka_cms | ||
|
||
|
||
mishka_cms: | ||
image: mishkagroup/elixir_dev:1.13.3-alpine | ||
container_name: mishka_cms | ||
restart: always | ||
working_dir: /app | ||
command: sleep 365d | ||
hostname: mishka_cms | ||
networks: | ||
netowrk: | ||
env_file: | ||
- ../etc/.mishka_cms_env | ||
volumes: | ||
- cms:/app/Mnesia.nonode@nohost | ||
- ../../../:/app | ||
- /etc/localtime:/etc/localtime:ro | ||
depends_on: | ||
- mishka_db | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "300m" | ||
|
||
|
||
mishka_db: | ||
image: mishkagroup/postgresql:3.14 | ||
container_name: mishka_db | ||
hostname: mishka_db | ||
restart: always | ||
networks: | ||
netowrk: | ||
ports: | ||
- "5432:5432" | ||
env_file: | ||
- ../etc/.mishka_cms_env | ||
volumes: | ||
- database:/var/lib/postgresql/data | ||
- /etc/localtime:/etc/localtime:ro | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "300m" | ||
|
||
|
||
networks: | ||
netowrk: | ||
|
||
|
||
volumes: | ||
cms: | ||
database: |
56 changes: 56 additions & 0 deletions
56
deployment/docker/dockers/docker-compose_dev_without_nginx.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
version: "3.9" | ||
|
||
services: | ||
mishka_cms: | ||
image: mishkagroup/elixir_dev:1.13.3-alpine | ||
container_name: mishka_cms | ||
restart: always | ||
working_dir: /app | ||
command: sleep 365d | ||
hostname: mishka_cms | ||
networks: | ||
netowrk: | ||
ports: | ||
- "4000:4000" # for web | ||
- "4001:4001" # for api | ||
env_file: | ||
- ../etc/.mishka_cms_env | ||
volumes: | ||
- cms:/app/Mnesia.nonode@nohost | ||
- ../../../:/app | ||
- /etc/localtime:/etc/localtime:ro | ||
depends_on: | ||
- mishka_db | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "300m" | ||
|
||
|
||
mishka_db: | ||
image: mishkagroup/postgresql:3.14 | ||
container_name: mishka_db | ||
hostname: mishka_db | ||
restart: always | ||
networks: | ||
netowrk: | ||
ports: | ||
- "5432:5432" | ||
env_file: | ||
- ../etc/.mishka_cms_env | ||
volumes: | ||
- database:/var/lib/postgresql/data | ||
- /etc/localtime:/etc/localtime:ro | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "300m" | ||
|
||
|
||
networks: | ||
netowrk: | ||
|
||
|
||
volumes: | ||
cms: | ||
database: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
`- | ||
-: | ||
-:` `:- | ||
.` `:/y: `. | ||
``` `+. +- `` | ||
`:-` :- `+ -:. | ||
-``-` | ||
`. | ||
.://+. | ||
`.:::os:/+. | ||
....:-` ` `++`./s+. | ||
`:++. ` `:ss/-y`++` | ||
.++- :: :/+` .: -s: | ||
:+/` ` :. o/.`.` +y- | ||
`:/. +`od/ ./ y:/` | ||
`.` :: `` ./`o `:- | ||
-+/.` `` `+/ `-` | ||
`y`+ `-.`/: `` | ||
o/:/ -/-y | ||
:oy: `/h: | ||
`+y+oooo+o++. | ||
`//--:+o..++. | ||
`s. .+``--.++. | ||
-yy:-/ ./..++` | ||
`-//:y-.-::. /::+s- | ||
.::--` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ssl_certificate /etc/ssl/dev/server_example.crt; | ||
ssl_certificate_key /etc/ssl/dev/server_example.key; | ||
ssl_trusted_certificate /etc/ssl/letsencrypt/lets-encrypt-x3-cross-signed.pem; | ||
ssl_dhparam /etc/ssl/letsencrypt/dhparam2048.pem; | ||
ssl_ecdh_curve secp384r1; | ||
ssl_session_cache shared:SSL:50m; | ||
ssl_session_timeout 1d; | ||
ssl_session_tickets off; | ||
ssl_prefer_server_ciphers on; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; | ||
resolver 8.8.8.8 8.8.4.4; | ||
ssl_stapling_verify on; | ||
ssl_buffer_size 4k; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains"; |
16 changes: 16 additions & 0 deletions
16
deployment/docker/etc/nginx/conf/sample_conf/ssl_prod.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ssl_certificate /etc/ssl/prod/letsencrypt/live/SITE_NAME/fullchain.pem; | ||
ssl_certificate_key /etc/ssl/prod/letsencrypt/live/SITE_NAME/privkey.pem; | ||
ssl_trusted_certificate /etc/ssl/letsencrypt/lets-encrypt-x3-cross-signed.pem; | ||
ssl_dhparam /etc/ssl/letsencrypt/dhparam2048.pem; | ||
ssl_ecdh_curve secp384r1; | ||
ssl_session_cache shared:SSL:50m; | ||
ssl_session_timeout 1d; | ||
ssl_session_tickets off; | ||
ssl_prefer_server_ciphers on; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; | ||
resolver 8.8.8.8 8.8.4.4; | ||
ssl_stapling on; | ||
ssl_stapling_verify on; | ||
ssl_buffer_size 4k; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains"; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.