Some of the features
See https://relapps.net for more information.
The docker image include Alpine Linux, OpenJDK, Spring framework and other software.
The port 8080 is used to offer the service.
Example docker compose file using MariaDB:
version: '3.2'
#
# Example Docker compose file for ptrac and mariadb.
#
# Available environment variables for ptrac:
# - PTRAC_DB_TYPE (database type mariadb, mysql or postgres)
# - PTRAC_DB_HOST (database host)
# - PTRAC_DB_NAME (database name)
# - PTRAC_DB_USER (database user)
# - PTRAC_DB_PASSWORD (database user password)
# - PTRAC_DB_PORT (optional: database port)
#
# Specify entrypoint with the path if you need to run the application in a different context.
# entrypoint: ["/scripts/run.sh", "--server.servlet.context-path=/ptrac"]
#
services:
ptrac_app:
container_name: ptrac_app
image: relapps/ptrac:latest
restart: always
depends_on:
- ptrac_db
ports:
- 8080:8080
environment:
PTRAC_DB_TYPE: mariadb
PTRAC_DB_HOST: ptrac_db
PTRAC_DB_NAME: ptrac
PTRAC_DB_USER: ptrac
PTRAC_DB_PASSWORD: ptrac
PTRAC_DB_PORT: 3306
volumes:
- /home/user/ptrac/data:/data
ptrac_db:
container_name: ptrac_db
image: mariadb:10.4
restart: always
environment:
MYSQL_ROOT_PASSWORD: ptrac
MYSQL_DATABASE: ptrac
MYSQL_USER: ptrac
MYSQL_PASSWORD: ptrac
volumes:
- /home/user/ptrac/db:/var/lib/mysql
Example docker compose file using PostgreSQL:
version: '3.2'
#
# Example Docker compose file for ptrac and postgresql.
#
# Available environment variables:
# - PTRAC_DB_TYPE (database type mariadb, mysql or postgres)
# - PTRAC_DB_HOST (database host)
# - PTRAC_DB_NAME (database name)
# - PTRAC_DB_USER (database user)
# - PTRAC_DB_PASSWORD (database user password)
# - PTRAC_DB_PORT (optional: database port)
#
# Specify entrypoint with the path if you need to run the application in a different context.
# entrypoint: ["/scripts/run.sh", "--server.servlet.context-path=/ptrac"]
#
services:
ptrac_postgres_app:
container_name: ptrac_postgres_app
image: relapps/ptrac:latest
restart: always
depends_on:
- ptrac_postgres_db
ports:
- 8080:8080
environment:
PTRAC_DB_TYPE: postgres
PTRAC_DB_HOST: ptrac_postgres_db
PTRAC_DB_NAME: ptrac
PTRAC_DB_USER: ptrac
PTRAC_DB_PASSWORD: ptrac
volumes:
- /home/user/ptrac/data:/data
ptrac_postgres_db:
container_name: ptrac_postgres_db
image: postgres:13
restart: always
environment:
- POSTGRES_USER=ptrac
- POSTGRES_PASSWORD=ptrac
logging:
options:
max-size: 10m
max-file: "3"
volumes:
- /home/user/ptrac/db:/var/lib/postgresql/data
Start the containers with docker-compose:
docker-compose -f ptrac-compose.yml up -d
Content type
Image
Digest
sha256:9eaf7953e…
Size
215.4 MB
Last updated
over 1 year ago
docker pull relapps/ptrac