Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
/ pnp-na-kompe Public archive

Coursework speedrun (12h) based on my private fullstack template

Notifications You must be signed in to change notification settings

barsikus007/pnp-na-kompe

Repository files navigation

Installation

Install docker

On Windows

Windows 11 or with winget installed
wsl --install -d Ubuntu
winget install Docker.DockerDesktop -h
Below Windows 11

Installer

On Linux

# install docker
curl -sSL https://get.docker.com | sh
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker; exit

# install docker compose
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -i) -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose

Launch app in development mode

Note, that on windows you must use WSL if you are frontend developer due to react-scripts@5.0.0 bug with hot reloading
docker compose up -d --build

Launch app in production mode

docker compose -f "docker-compose.prod.yml" up -d --build