graph TB
SubGraph1 --> SubGraph1Flow
subgraph "./debian-base-install.sh"
SubGraph1Flow(Install Base Server)
SubGraph1Flow -- apt install --> SubGraph1Flow1(Server with dependencies)
SubGraph1Flow1 -- clone mmg-tools in /mmg --> SubGraph1Flow2(Repository)
SubGraph1Flow2 -- create user mmg --> SubGraph1Flow3(installed application)
SubGraph1Flow3 -- copy docker/$ENV/* docker/ --> SubGraph1Flow4(configured application)
SubGraph1Flow4 -- docker-compose up --> SubGraph1Flow5(running dockers)
end
SubGraph2 --> SubGraph2Flow
subgraph "./deploy_backend.sh"
SubGraph2Flow(Install Back End Volume)
SubGraph2Flow -- clone mmg-server in /tmp --> SubGraph2Flow1(Repository)
SubGraph2Flow1 -- configure files --> SubGraph2Flow2(configured application)
SubGraph2Flow2 -- composer install --> SubGraph2Flow3(installed application)
SubGraph2Flow3 -- mv /tmp /volumes --> SubGraph2Flow3(application deployed in volumes)
end
SubGraph3 --> SubGraph3Flow
subgraph "./deploy_frontend.sh"
SubGraph3Flow(Install Front End Volume)
SubGraph3Flow -- clone mmg-client in /tmp --> SubGraph3Flow1(Repository)
SubGraph3Flow1 -- npm install $ENV --> SubGraph3Flow2(installed application)
SubGraph3Flow2 -- build sass --> SubGraph3Flow3(generated css files)
SubGraph3Flow3 -- npm run build --> SubGraph3Flow4(built application)
SubGraph3Flow4 -- mv /tmp /volumes --> SubGraph3Flow5(application deployed in volumes)
end
SubGraph4 --> SubGraph4Flow
subgraph "Missing functionnality"
SubGraph4Flow(Install Database Volume)
SubGraph4Flow -- manually copy existing volume --> SubGraph4Flow1(Volume set)
end
SubGraph1[Install Server] --> SubGraph2[Install Back End]
SubGraph2 --> SubGraph3[Install Front End]
SubGraph3 --> SubGraph4[Install DATABASE]