Skip to content

e1jefe/nginx-bitmedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-bitmedia

Nginx-bitmedia test task

The code creates a droplet in digitalocean using terraform, builds a docker image, configures and deploys an Nginx server with an inscription on the start page using ansible and docker compose.

Required

Docker, Terraform, Ansible Worked with: Docker version 23.0.5, Terraform v1.4.4, Ansible core 2.15.0. Tested MacOS 13.4

Setup

  1. Retrieve your API key from DigitalOcean

Note: If you haven't already, you'll have to create an account and set up billing.

  1. Get your DigitalOcean SSH key fingerprint DigitalOcean

  2. Get your DockerHub username DockerHub

  3. Get your DockerHub access token DockerHub

  4. Export credentials to env.

export TF_VAR_do_token=<Digitalocean token, i.e. dop_v1_12345>
export TF_VAR_ssh_key_fingerprint= <Digitalocean fingerprint, i.e. cb:98:63:cf>
export DOCKERHUB_ACCESS_TOKEN= <DockerHub access token, i.e. dckr_pat_foo_bar>
export DOCKERHUB_USERNAME= <Dockerhub username, i.e. username>
  1. Clone repository and run ./start.sh

About

Repo for Test task Bitmedia.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors