Skip to content

Latest commit

 

History

History
executable file
·
63 lines (47 loc) · 1.25 KB

README.md

File metadata and controls

executable file
·
63 lines (47 loc) · 1.25 KB

Live Timing Strategy - App Frontend

Introduction

App frontend to display timing information.

Setup for development

For development, we also need to install these tools:

Network of containers

The containers need to be on the same network to connect to each other. Otherwise, the API REST won't be able to see the database.

docker network create lts-network

Website

Build the container:

docker build --no-cache --tag lts-website ./dockerfiles/php

Run it:

docker run \
  --name lts-website \
  --network lts-network \
  --mount type=bind,source="$(pwd)",target=/var/www/html \
  -p 9000:9000 \
  --env-file .env \
  lts-website

Nginx (website)

Note: The container lts-nginx-website must be running before running this.

Build the container:

docker build --no-cache --tag lts-website-nginx ./dockerfiles/nginx

Run it:

docker run \
  --name lts-website-nginx \
  --network lts-network \
  --mount type=bind,source="$(pwd)",target=/var/www/html \
  -p 8091:80 \
  --env-file .env \
  lts-website-nginx

Application

You can access to the main application by opening http://localhost:8000.

Note: The ports depend on the settings of the file .env.