Docker

This secton will describe step by step on how to deploy BudgetApp using Docker.

Warning

This setup does not include instructions for backup of Postgres DB.

Prerequisites

Running BudgetApp

# Run Postgres DB
docker run -d \
    --name postgres-db \
    -e POSTGRES_PASSWORD=mysecretpassword \
    postgres

# Run BudgetApp
docker run -d \
    --name budgetapp \
    --link postgres-db:postgres-db \
    -p 8080:8080 \
    -e DB_DRIVER=org.postgresql.Driver \
    -e DB_USERNAME=postgres \
    -e DB_PASSWORD=mysecretpassword \
    -e DB_URL=jdbc:postgresql://postgres-db/postgres  \
    -e DB_DIALECT=io.budgetapp.hibernate.dialect.CustomPostgreSQLDialect \
    paukiatwee/budgetapp

See Postgres Docker documentation for supported Environment Variables.