Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #27 from WellCheck-Co/develop
Browse files Browse the repository at this point in the history
#12 : Added visuals on how WellCheck work and fixed various typos + improved docker compose file
  • Loading branch information
flavienbwk authored May 24, 2020
2 parents 0f3195c + 4896f87 commit 94b11a5
Show file tree
Hide file tree
Showing 15 changed files with 616 additions and 521 deletions.
19 changes: 11 additions & 8 deletions .gitignore
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
334 changes: 166 additions & 168 deletions docker-compose.yml
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 removed landing/front/imgs/D9fAcEpXUAAflM_.jpg
Binary file not shown.
Binary file removed landing/front/imgs/DSCF4055-1.jpg
Binary file not shown.
Binary file removed landing/front/imgs/adrien.jpg
Binary file not shown.
Binary file added landing/front/imgs/benjamin-min.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed landing/front/imgs/clement.png
Binary file not shown.
Binary file removed landing/front/imgs/eliot.jpg
Binary file not shown.
Binary file removed landing/front/imgs/flavien.jpg
Binary file not shown.
Binary file added landing/front/imgs/futura_article_wellcheck.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed landing/front/imgs/jimi.jpg
Binary file not shown.
Binary file removed landing/front/imgs/marc.jpg
Binary file not shown.
Binary file added landing/front/imgs/wc_map_floaters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landing/front/imgs/wc_scores.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 94b11a5

Please sign in to comment.