Skip to main content

Using docker

each app can be built with the Dockerfile within the apps directory. From root of the repo you can build these or use docker-compose.yml.

Requirements

Docker needs to be installed :)

Individual apps

docker build apps/main-app --target main-app --tag main-app:latest

Docker compose

# Create a network, which allows containers to communicate
# with each other, by using their container name as a hostname
docker network create app_network
# Build prod using new BuildKit engine
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.yml build
# Start prod in detached mode
docker-compose -f docker-compose.yml up -d

Now you can open:

To shutdown all running containers:

# Stop all running containers
docker kill $(docker ps -q) && docker rm $(docker ps -a -q)

Sources: