This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #27 from WellCheck-Co/develop
#12 : Added visuals on how WellCheck work and fixed various typos + improved docker compose file
- Loading branch information
Showing
15 changed files
with
616 additions
and
521 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
data/ | ||
__pycache__/ | ||
logs/ | ||
passwd/ | ||
admin/services/goaccess/front/ | ||
.env | ||
proxy/vhost/localhost | ||
webapp/front/js/conf.js | ||
data/ | ||
__pycache__/ | ||
logs/ | ||
passwd/ | ||
admin/services/goaccess/front/ | ||
.env | ||
proxy/vhost/localhost | ||
webapp/front/js/conf.js | ||
|
||
proxy/certs | ||
proxy/html |
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 |
---|---|---|
@@ -1,168 +1,166 @@ | ||
version: '3' | ||
networks: | ||
db-net: | ||
internal: true | ||
proxy: | ||
driver: bridge | ||
|
||
services: | ||
datab: | ||
image: mysql:5.7 | ||
container_name: datab | ||
restart: always | ||
networks: | ||
- db-net | ||
volumes: | ||
- ./webapp/db/sql/data:/var/lib/mysql | ||
environment: | ||
MYSQL_RANDOM_ROOT_PASSWORD: 1 | ||
MYSQL_USER: ${DB_USER} | ||
MYSQL_DATABASE: wellcheck | ||
MYSQL_PASSWORD: ${DB_PASS} | ||
|
||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.0 | ||
container_name: elasticsearch | ||
environment: | ||
- cluster.name=docker-cluster | ||
- bootstrap.memory_lock=false | ||
- cluster.routing.allocation.disk.threshold_enabled=false | ||
- discovery.type=single-node | ||
- ES_JAVA_OPTS=-Xms512m -Xmx512m | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
volumes: | ||
- ./webapp/db/elastic/data:/usr/share/elasticsearch/data | ||
networks: | ||
- db-net | ||
|
||
|
||
map_bck-end: | ||
build: ./webapp/api | ||
expose: | ||
- 8080 | ||
tty: true | ||
stdin_open: true | ||
depends_on: | ||
- datab | ||
networks: | ||
- db-net | ||
- proxy | ||
volumes: | ||
- ./webapp/api:/home/api/ | ||
environment: | ||
VIRTUAL_HOST: api.${DOMAIN} | ||
VIRTUAL_PORT: 8080 | ||
LETSENCRYPT_HOST: api.${DOMAIN} | ||
LETSENCRYPT_EMAIL: ${EMAIL} | ||
API_MOD: ${API_MOD} | ||
API_PASS: password | ||
DB_USER: ${DB_USER} | ||
DB_PASS: ${DB_PASS} | ||
STRIPE_PRIV: ${STRIPE_PRIV} | ||
|
||
autodata: | ||
build: ./webapp/autodata | ||
container_name: autodata | ||
tty: true | ||
stdin_open: true | ||
depends_on: | ||
- map_bck-end | ||
networks: | ||
- db-net | ||
environment: | ||
DB_USER: ${DB_USER} | ||
DB_PASS: ${DB_PASS} | ||
CRON_SCHEDULE: "*/15 * * * *" | ||
|
||
map_landing: | ||
image: nginx | ||
restart: always | ||
volumes: | ||
- ./landing/front:/usr/share/nginx/html:ro | ||
- ./landing/conf/landing.conf:/etc/nginx/conf.d/default.conf:ro | ||
links: | ||
- error | ||
- php | ||
networks: | ||
- proxy | ||
environment: | ||
VIRTUAL_HOST: ${DOMAIN} | ||
VIRTUAL_PORT: 80 | ||
LETSENCRYPT_HOST: ${DOMAIN} | ||
LETSENCRYPT_EMAIL: ${EMAIL} | ||
|
||
map_webapp: | ||
image: nginx | ||
restart: always | ||
volumes: | ||
- ./webapp/front:/usr/share/nginx/html:ro | ||
- ./webapp/conf/webapp.conf:/etc/nginx/conf.d/default.conf:ro | ||
links: | ||
- error | ||
networks: | ||
- proxy | ||
environment: | ||
VIRTUAL_HOST: dashboard.${DOMAIN} | ||
VIRTUAL_PORT: 80 | ||
LETSENCRYPT_HOST: dashboard.${DOMAIN} | ||
LETSENCRYPT_EMAIL: ${EMAIL} | ||
|
||
php: | ||
image: php:fpm-alpine | ||
container_name: php | ||
volumes: | ||
- ./landing/front:/script:ro | ||
- ./admin/services/contact:/result | ||
networks: | ||
- proxy | ||
|
||
|
||
error: | ||
image: nginx | ||
container_name: error | ||
restart: always | ||
volumes: | ||
- ./error/front:/usr/share/nginx/html:ro | ||
- ./error/conf/error.conf:/etc/nginx/conf.d/default.conf:ro | ||
networks: | ||
- proxy | ||
|
||
nginx: | ||
image: jwilder/nginx-proxy:alpine | ||
container_name: nginx | ||
restart: always | ||
labels: | ||
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: 'true' | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
volumes: | ||
- ./proxy/logs/global:/var/log/nginx | ||
- ./proxy/conf/proxy.conf:/etc/nginx/conf.d/proxy.conf:ro | ||
- ./proxy/vhost:/etc/nginx/vhost.d | ||
- ./proxy/passwd:/etc/nginx/htpasswd | ||
- ./proxy/logs/services:/customlogs/ | ||
- /srv/nginx/data/html:/usr/share/nginx/html | ||
- /srv/nginx/data/certs:/etc/nginx/certs:ro | ||
- /var/run/docker.sock:/tmp/docker.sock:ro | ||
networks: | ||
- proxy | ||
|
||
letsencrypt: | ||
image: jrcs/letsencrypt-nginx-proxy-companion | ||
container_name: letsencrypt | ||
volumes: | ||
- ./proxy/vhost:/etc/nginx/vhost.d | ||
- /srv/nginx/data/certs:/etc/nginx/certs:rw | ||
- /srv/nginx/data/html:/usr/share/nginx/html | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
depends_on: | ||
- nginx | ||
networks: | ||
- proxy | ||
|
||
volumes: | ||
db: | ||
version: '3' | ||
|
||
networks: | ||
db-net: | ||
internal: true | ||
proxy: | ||
driver: bridge | ||
|
||
services: | ||
database: | ||
image: mysql:5.7 | ||
container_name: database | ||
restart: always | ||
networks: | ||
- db-net | ||
volumes: | ||
- ./webapp/db/sql/data:/var/lib/mysql | ||
environment: | ||
MYSQL_RANDOM_ROOT_PASSWORD: 1 | ||
MYSQL_USER: ${DB_USER} | ||
MYSQL_DATABASE: wellcheck | ||
MYSQL_PASSWORD: ${DB_PASS} | ||
|
||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.0 | ||
container_name: elasticsearch | ||
environment: | ||
- cluster.name=docker-cluster | ||
- bootstrap.memory_lock=false | ||
- cluster.routing.allocation.disk.threshold_enabled=false | ||
- discovery.type=single-node | ||
- ES_JAVA_OPTS=-Xms512m -Xmx512m | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
volumes: | ||
- ./webapp/db/elastic/data:/usr/share/elasticsearch/data | ||
networks: | ||
- db-net | ||
|
||
|
||
map_bck-end: | ||
build: ./webapp/api | ||
expose: | ||
- 8080 | ||
tty: true | ||
stdin_open: true | ||
depends_on: | ||
- database | ||
networks: | ||
- db-net | ||
- proxy | ||
volumes: | ||
- ./webapp/api:/home/api/ | ||
environment: | ||
VIRTUAL_HOST: api.${DOMAIN} | ||
VIRTUAL_PORT: 8080 | ||
LETSENCRYPT_HOST: api.${DOMAIN} | ||
LETSENCRYPT_EMAIL: ${EMAIL} | ||
API_MOD: ${API_MOD} | ||
API_PASS: password | ||
DB_USER: ${DB_USER} | ||
DB_PASS: ${DB_PASS} | ||
STRIPE_PRIV: ${STRIPE_PRIV} | ||
|
||
autodata: | ||
build: ./webapp/autodata | ||
container_name: autodata | ||
tty: true | ||
stdin_open: true | ||
depends_on: | ||
- map_bck-end | ||
networks: | ||
- db-net | ||
environment: | ||
DB_USER: ${DB_USER} | ||
DB_PASS: ${DB_PASS} | ||
CRON_SCHEDULE: "*/15 * * * *" | ||
|
||
map_landing: | ||
image: nginx | ||
restart: always | ||
volumes: | ||
- ./landing/front:/usr/share/nginx/html:ro | ||
- ./landing/conf/landing.conf:/etc/nginx/conf.d/default.conf:ro | ||
links: | ||
- error | ||
- php | ||
networks: | ||
- proxy | ||
environment: | ||
VIRTUAL_HOST: ${DOMAIN} | ||
VIRTUAL_PORT: 80 | ||
LETSENCRYPT_HOST: ${DOMAIN} | ||
LETSENCRYPT_EMAIL: ${EMAIL} | ||
|
||
map_webapp: | ||
image: nginx | ||
restart: always | ||
volumes: | ||
- ./webapp/front:/usr/share/nginx/html:ro | ||
- ./webapp/conf/webapp.conf:/etc/nginx/conf.d/default.conf:ro | ||
links: | ||
- error | ||
networks: | ||
- proxy | ||
environment: | ||
VIRTUAL_HOST: dashboard.${DOMAIN} | ||
VIRTUAL_PORT: 80 | ||
LETSENCRYPT_HOST: dashboard.${DOMAIN} | ||
LETSENCRYPT_EMAIL: ${EMAIL} | ||
|
||
php: | ||
image: php:fpm-alpine | ||
container_name: php | ||
volumes: | ||
- ./landing/front:/script:ro | ||
- ./admin/services/contact:/result | ||
networks: | ||
- proxy | ||
|
||
|
||
error: | ||
image: nginx | ||
container_name: error | ||
restart: always | ||
volumes: | ||
- ./error/front:/usr/share/nginx/html:ro | ||
- ./error/conf/error.conf:/etc/nginx/conf.d/default.conf:ro | ||
networks: | ||
- proxy | ||
|
||
nginx: | ||
image: jwilder/nginx-proxy:alpine | ||
container_name: nginx | ||
restart: always | ||
labels: | ||
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: 'true' | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
volumes: | ||
- ./proxy/logs/global:/var/log/nginx | ||
- ./proxy/conf/proxy.conf:/etc/nginx/conf.d/proxy.conf:ro | ||
- ./proxy/vhost:/etc/nginx/vhost.d | ||
- ./proxy/passwd:/etc/nginx/htpasswd | ||
- ./proxy/logs/services:/customlogs | ||
- ./proxy/html:/usr/share/nginx/html | ||
- ./proxy/certs:/etc/nginx/certs:ro | ||
- /var/run/docker.sock:/tmp/docker.sock:ro | ||
networks: | ||
- proxy | ||
|
||
letsencrypt: | ||
image: jrcs/letsencrypt-nginx-proxy-companion | ||
container_name: letsencrypt | ||
volumes: | ||
- ./proxy/vhost:/etc/nginx/vhost.d | ||
- ./proxy/certs:/etc/nginx/certs:rw | ||
- ./proxy/html:/usr/share/nginx/html | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
depends_on: | ||
- nginx | ||
networks: | ||
- proxy |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.