en
Installation with Docker-Compose

Installation #

  1. You need to have Docker and Docker Compose installed on your machine to run Econumo.
  2. Create a .env file in the root directory of your project (see an example below).
  3. Create a docker-compose.yml file in the root directory of your project with the content listed below.
  4. Run docker-compose up -d in the root directory of the project.

Environment Variables #

# Econumo environment variables
# Frontend
ECONUMO_CONFIG_API_URL=http://localhost:8081

# Backend
APP_ENV=prod
APP_SECRET=123 # Change this to a random string
# Specify the secret and public key paths
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
# Change this to a random string
JWT_PASSPHRASE=123 

# Database
DATABASE_URL=sqlite:///%kernel.project_dir%/db/econumo.sqlite

# If you want to use the system API to update currencies, you need to set this key
ECONUMO_SYSTEM_API_KEY=
# Change this to your base currency
ECONUMO_CURRENCY_BASE=USD

# Change this to false if you don't want to allow registration
ECONUMO_ALLOW_REGISTRATION=true

# Mailer
MAILER_DSN=null://null
# Change this to your email address
ECONUMO_FROM_EMAIL=
# Change this to your email address
ECONUMO_REPLY_TO_EMAIL=

Docker Compose File #

services:
  app:
    image: econumo/app-frontend:latest
    env_file:
      - .env
    ports:
      - "8080:80"
    restart: unless-stopped

  api:
    image: econumo/api-backend:latest
    env_file:
      - .env
    working_dir: /var/www
    entrypoint: [ "/bin/sh", "-c", "/entrypoint.sh" ]
    volumes:
      - db:/var/www/db
    ports:
      - "8081:80"
    restart: unless-stopped

volumes:
  db: