-
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 #1 from Elemento-Modular-Cloud/dev
Final
- Loading branch information
Showing
29 changed files
with
3,414 additions
and
114 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
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,20 +1,49 @@ | ||
# Elemento marketplace | ||
|
||
# Specs | ||
|
||
- Container per accesso FTP | ||
- Uno o piu' container DB MySQL con dashboard phpmyadmin | ||
- Container per esecuzione cronjob | ||
- Uno o piu' container per mail server con dashboard per creazione account | ||
- Container di front-end per webserver (nginx) | ||
- Container per gestione certificati SSL (i.e. swag) | ||
- Container per esecuzione PHP FPM da v7 a successive | ||
- Portainer | ||
- traefik | ||
- homepage | ||
- homepage autoconfig | ||
|
||
# Conventions | ||
### Specs | ||
|
||
- Container per accesso [FTP](https://hub.docker.com/r/stilliard/pure-ftpd) | ||
- Uno o piu' container DB [MySQL](https://hub.docker.com/_/mysql) con dashboard [phpmyadmin](https://hub.docker.com/_/phpmyadmin) | ||
- Container per esecuzione [cronjob](https://github.com/alseambusher/crontab-ui) | ||
- Uno o piu' container per mail server con dashboard per creazione account [Mailu](https://mailu.io/2.0/index.html) | ||
- Container di front-end per webserver ([nginx](https://hub.docker.com/_/nginx)) | ||
- Container per gestione certificati SSL (i.e. swag) - via [traefik](https://doc.traefik.io/traefik/) | ||
- Container per esecuzione [PHP FPM](https://hub.docker.com/layers/library/php/fpm-alpine3.19/images/sha256-4df626957fe8907b11d439553e830fbd815737a2c3ad15af912152ef2958ccf9?context=explore) da v7 a successive | ||
- [Portainer](https://docs.portainer.io/user/docker/stacks) | ||
- [traefik](https://doc.traefik.io/traefik/) | ||
- NOTE: the acme.json file must be set with the 600 permission | ||
- [homepage](https://github.com/gethomepage/homepage) | ||
- homepage autoconfig (traefik-discovery) | ||
- NOTE: the services.yaml must be set with the 600 permission | ||
- The container is reachable only inside the docker network, use crontab to do the update (or refresh) of services, here the command: | ||
``` | ||
curl -X POST services-discovery:5001/api/v1/homepage/update | ||
or | ||
curl -X POST services-discovery:5001/api/v1/homepage/refresh (delete and recreate all services) | ||
``` | ||
|
||
|
||
|
||
### System design | ||
|
||
![System design](./img/system-design.png) | ||
|
||
### Starting the Stack | ||
|
||
|
||
To start the stack using docker stack deploy, run the following command with admin privileges: | ||
```bash | ||
chmod 600 traefik/acme.json | ||
chmod 600 homepage/config/services.yaml | ||
docker network create --driver overlay net | ||
docker stack deploy --compose-file docker-compose.yml web | ||
``` | ||
|
||
## Start the Mail service | ||
To start the mail stack use another VM and run the commands as explained in the "mailu" folder. | ||
That service works on docker-compose. | ||
|
||
### Conventions | ||
|
||
In Elemento we use [Google Style coding conventions](https://google.github.io/styleguide/). | ||
|
Oops, something went wrong.