Sign inSign up

martadinata666/reactive-resume

By martadinata666

Updated over 2 years ago

Personal hosted resume builder

Image
1

5.4K

martadinata666/reactive-resume repository overview

Reactive Resume

rx-img

Supported tags

  • latest, v3.2.5, v3.x.x onward
  • git (some random test)
  • static (ready use apps embedded firebase) (stopped update v2) depreceated
  • develop (run develop mode with personal firebase env setup) (stopped update v2) depreceated

Significant change

  • V4 onward also an overhaul need S3 and separate chrome deployment.
  • There is a change on v3.6.4 onward, must set PUBLIC_URL=http://hostip:3000 and PUBLIC_SERVER_URL=http://hostip:3100 look the env part.
  • Local storage support start from v3.4.6

V4

  • V4 on development stage, still cant start correctly, lock tag as v3.8.4 for now
V4 env
### Addiotional env may added after this write, also refer https://github.com/AmruthPillai/Reactive-Resume/blob/main/.env.example
#App
PORT=3000

# Auth Secrets
# generated with `openssl rand -base64 64`
ACCESS_TOKEN_SECRET=
REFRESH_TOKEN_SECRET=

# Database
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_USER=reactiveresume
POSTGRES_PASSWORD=reactiveresumepass
POSTGRES_DB=reactiveresume
POSTGRES_SSL_CERT=
# Database (Prisma/PostgreSQL)
DATABASE_URL=postgresql://reactiveresume:reactiveresumepass@db:5432/postgres?schema=public

# Redis (for cache & server session management)
REDIS_URL=redis://redis:6379

# S3 Storage
## Adjust the port also if deployed on different port
STORAGE_URL="http://host-ip:9000"
STORAGE_ENDPOINT="host-ip"
STORAGE_PORT=9000
STORAGE_REGION=us-east-1
STORAGE_BUCKET=reactiveresume
STORAGE_ACCESS_KEY=minioadmin
STORAGE_SECRET_KEY=minioadmin

# Chrome Browser (for printing)
CHROME_PORT=3000
# generated with `openssl rand -hex 32`
CHROME_TOKEN=d3f897e76179915771c716fe6284cae80be29801fa4f4db9f211e7fc5dfd4aa4
CHROME_URL=ws://chrome:3000

# Can user register?
#PUBLIC_FLAG_DISABLE_SIGNUPS=false

# Client
PUBLIC_URL=http://host-ip:3000
V4 Compose
version: "3.8"
services:
  app:
    image: martadinata666/reactive-resume:v4.0.0
    restart: always
    environment:
      - TZ=Asia/Jakarta
    env_file:
      - env.v4
    networks:
      - resume
    ports:
      - 3000:3000

  minio:
    image: minio/minio
    restart: unless-stopped
    command: server /data
    ports:
      - 9000:9000
    volumes:
      - minio_data:/data
    networks:
      - resume
    environment:
      MINIO_ROOT_USER: minioadmin
      MINIO_ROOT_PASSWORD: minioadmin

  db:
    image: postgres:13
    user: 1000:1000
    environment:
      - POSTGRES_USER=reactiveresume
      - POSTGRES_PASSWORD=reactiveresumepass
      - POSTGRES_DB=reactiveresume
    restart: always
    volumes:
      - ./db:/var/lib/postgresql/data
    networks:
      - resume

  redis:
    image: redis:latest
    environment:
      - TZ=Asia/Jakarta
    volumes:
      - redis-db:/data
    restart: unless-stopped
    networks:
      - resume

  chrome:
    image: browserless/chrome:latest
    env_file:
      - env.v4
    networks:
      - resume

networks:
  resume:
    name: resume4

volumes:
  redis-db:
  db:
  minio_data:

V3

V3 env file

Create an env file, in same directory as docker-compose.yml or manually add to environment: part of compose.

# App
TZ=UTC
SECRET_KEY=

# Database
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_USER=reactiveresume
POSTGRES_PASSWORD=reactiveresumepass
POSTGRES_DB=reactiveresume
POSTGRES_SSL_CERT=

# Auth
JWT_SECRET=
JWT_EXPIRY_TIME=604800

# Google
# https://developers.google.com/fonts/docs/developer_api
GOOGLE_API_KEY=

# Can user register?
PUBLIC_FLAG_DISABLE_SIGNUPS=true

# Set client and server url, chage to computer IP 
PUBLIC_URL=http://localhost:3000
PUBLIC_SERVER_URL=http://localhost:3100

# Disabling S3 storage, not needed v3.6.5 onward
#STORAGE_S3_ENABLED=false


V3 Compose
version: "3.8"
services:
  app:
    image: martadinata666/reactive-resume:latest
    env_file:
       - env
    environment:
       - TZ=UTC
    networks:
      - reactiveresume
    ports:
      - 3000:3000
      - 3100:3100
    volumes:
      - /path/to/uploads:/home/docker/reactiveresume/server/dist/assets/uploads
      - /path/to/exports:/home/docker/reactiveresume/server/dist/assets/exports #photo and export storage
    restart: unless-stopped

  db:
    image: postgres:13
    user: 1000:1000 #debian image had user override feature, not working on alpine image
    environment:
      - POSTGRES_USER=reactiveresume
      - POSTGRES_PASSWORD=reactiveresumepass
      - POSTGRES_DB=reactiveresume
   restart: unless-stopped
    volumes:
      - db:/var/lib/postgresql/data
    networks:
      - reactiveresume

    networks:
      - reactiveresume

volumes:
  db:

networks:
  reactiveresume:
    name: reactiveresume

Tag summary

Content type

Image

Digest

sha256:7d2c9be84

Size

365.6 MB

Last updated

over 2 years ago

docker pull martadinata666/reactive-resume