Reactive Resume¶
Reactive Resume is a tool to easily create beautiful CVs.
There is an official image for this service that we'll use: amruthpillai/reactive-resume.
Pre-Installation¶
We'll create a folder in the main user's home where all the service's data will be saved.
mkdir ~/services/data/rxresume
Docker Compose¶
Reactive Resume will be run using Docker Compose. The content of the docker-compose.yml
file is as follows:
services:
db:
image: postgres:15-alpine
restart: unless-stopped
volumes:
- ./data:/var/lib/postgresql/data
environment:
TZ: America/Guayaquil
POSTGRES_DB: rxresume
POSTGRES_USER: rxresume
POSTGRES_PASSWORD: DATABASE_PASSWORD
api:
image: amruthpillai/reactive-resume:server-latest
restart: unless-stopped
networks:
default:
proxy_external:
aliases:
- rxresume_api
depends_on:
- db
environment:
TZ: America/Guayaquil
PUBLIC_URL: https://resume.alpha.example.com
PUBLIC_SERVER_URL: https://resume-api.alpha.example.com
POSTGRES_DB: rxresume
POSTGRES_USER: rxresume
POSTGRES_PASSWORD: DATABASE_PASSWORD
SECRET_KEY: SECRET_KEY
POSTGRES_HOST: db
POSTGRES_PORT: 5432
JWT_SECRET: JWT_SECRET
JWT_EXPIRY_TIME: 604800
labels:
traefik.enable: true
traefik.docker.network: proxy_external
traefik.http.routers.rxresume_api.rule: Host(`resume-api.alpha.example.com`)
traefik.http.routers.rxresume_api.entrypoints: local-https
traefik.http.routers.rxresume_api.tls: true
traefik.http.routers.rxresume_api.tls.certresolver: le
traefik.http.routers.rxresume_api.service: rxresume_api@docker
traefik.http.services.rxresume_api.loadbalancer.server.port: 3100
web:
image: amruthpillai/reactive-resume:client-latest
restart: unless-stopped
networks:
default:
proxy_external:
aliases:
- rxresume_web
depends_on:
- api
environment:
TZ: America/Guayaquil
PUBLIC_URL: https://resume.alpha.example.com
PUBLIC_SERVER_URL: https://resume-api.alpha.example.com
labels:
traefik.enable: true
traefik.docker.network: proxy_external
traefik.http.routers.rxresume_web.rule: Host(`resume.alpha.example.com`)
traefik.http.routers.rxresume_web.entrypoints: local-https
traefik.http.routers.rxresume_web.tls: true
traefik.http.routers.rxresume_web.tls.certresolver: le
traefik.http.routers.rxresume_web.service: rxresume_web@docker
traefik.http.services.rxresume_web.loadbalancer.server.port: 3000
networks:
proxy_external:
external: true
Note
Make sure to change DATABASE_PASSWORD
, SECRET_KEY
, and JWT_SECRET
to a custom secret value.
Note
Make sure to change PUBLIC_URL
and PUBLIC_SERVER_URL
to the URLs where each service is hosted.
Running¶
Start up the service with:
docker compose up -d
That's it! The service will auto-start on system startup and restart on failure.