Skip to content

ingsis-group-12/snippet-infrastructure

Repository files navigation

To start all services in a new ambient

  1. clone this repo and add your own .env using .env-example as a template

  2. run docker compose --profile nginx up -d to start only nginx

  3. run ./generate_https_certificates.sh to generate the certificates

  4. run docker compose --profile nginx down to stop the nginx service after the certificates are generated

  5. run docker compose --profile full-setup up -d to start all services with https

Usage

  • run all services: docker compose --profile full-setup up

  • stop all services: docker compose --profile full-setup down

  • run required services to develop with npm: docker compose --profile frontend-development up

  • stop required services to develop with npm: docker compose --profile frontend-development down

Files explain

./generate_https_certificates.sh: generate letsencrypt certificates with certbot container

./renew_https_certificates.sh: renew letsencrypt certificates with certbot container

./init_nginx: just for the nginx service defined in docker-compose.yml to dynamically generate the nginx configuration file depending if the certificates are available or not yet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages