Skip to content

The cloud services for the Alfie project from my bachelor thesis.

Notifications You must be signed in to change notification settings

george-radu-cs/alfie-cloud-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alfie Cloud Services

Services for the Alfie project. This repo uses docker compose V2. The compose file contains definitions for the following services:

Client app

The client app is a separate repo. It can be found here.

Environment variables

Example from .env.example

cp .env.example .env

Docker for development

docker compose --env-file .env up -d --build

Docker for production

In addition to the compose.yaml file, the production version uses one more file: compose.prod.yaml. This file contains the configuration for the services to use a certificate for secure connections.

docker compose --env-file .env -f compose.yaml -f compose.prod.yaml up -d --build
docker image prune -f
docker system prune -f

GitHub pipeline for production deploy

Deploy to production on push to main branch. Deployment is done with docker on an ec2 instance via ssh. Requieres the following secrets to be set in GitHub's repo secrets: AWS_PRIVATE_KEY, AWS_USERNAME, AWS_HOSTNAME