Skip to content

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.home.example.com
      PUBLIC_SERVER_URL: https://resume-api.home.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.home.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.home.example.com
      PUBLIC_SERVER_URL: https://resume-api.home.example.com
    labels:
      traefik.enable: true
      traefik.docker.network: proxy_external
      traefik.http.routers.rxresume_web.rule: Host(`resume.home.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 http://public_client_domain.com and http://public_api_domain.com to the domains 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.