Deployment

Docker Deployment

Minimal Docker Compose configuration:

services:
  db:
    image: postgres:14
    volumes:
      - 'db:/var/lib/postgresql/data'
    environment:
      POSTGRES_USER: brkmn_production
      POSTGRES_PASSWORD: so_wow_much_secure
    restart: always

  app:
    depends_on:
      - 'db'
    image: berkmancenter/timetracker:latest
    ports:
      - '6868:3000'
      - '8517:1080' # Mailcatcher
    restart: always
    environment:
      - APP_ENV=production

volumes:
  db:

Run:

docker compose up

The application will be available at http://localhost:6868.

Manual Deployment

See the Dockerfile to check what's needed to run it outside of Docker.

Last updated