Skip to content

xirzo/Blog

Repository files navigation

Current state

blog_preview

Installation (for development)

Copy env files and put values in them

cp backend.env Backend/.env
cp frontend.env Frontend/.env

Start the docker compose

docker-compose build
docker-compose up -d

Deploy on server

Warning

When building frontend image for production, set ENVs inside of the Dockerfile.

Create context to execute Docker commands as if you were on VPS.

docker context create blog --host=ssh;://<username>@<ip>

Use that context.

docker context use blog
docker swarm init

Add secrets

echo "PUT_STRING_HERE" | docker secret create DB_CONNECTION_STRING -

Deploy to the VPS

docker stack deploy blog -c docker-stack.yaml --with-registry-auth

About

Fullstack application for creating blog posts

Resources

Stars

Watchers

Forks

Packages

No packages published