https://github.com/logicify/docker-squash-tm
https://github.com/logicify/docker-squash-tm
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/logicify/docker-squash-tm
- Owner: Logicify
- License: mit
- Created: 2015-08-14T13:21:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-06T11:02:08.000Z (almost 9 years ago)
- Last Synced: 2025-05-07T17:49:30.021Z (8 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 7
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# squash-tm
## Configuration
You may whant to set the following environment variables:
```
DB_URL: jdbc:postgresql://DB-HOST:5432/DB-NAME
DB_USERNAME: user-name
DB_PASSWORD: your-password
DB_DIALECT: org.hibernate.dialect.PostgreSQLDialect
DB_DRIVER: org.postgresql.Driver
```
Also there are a few locations you may whant to mount as volumes:
```
/srv/squash-tm/tmp # Jetty tmp and work directory
/srv/squash-tm/bundles # Bundles directory
/srv/squash-tm/conf # Configurations directory
/srv/squash-tm/logs # Log directory
/srv/squash-tm/jettyhome # Jetty home directory
/srv/squash-tm/luceneindexes # Lucene indexes directory
/srv/squash-tm/plugins # Plugins directory
```
## Preparation for the first run
If you are going to use Postgres database you need to prepare DB and schema.
Run bash command on this image/container. e.g:
```
docker run --rm -it logicify/squash-tm /bin/bash
```
and issue the following:
```
psql -h --user $DB_USER $DB_NAME < ../database-scripts/postgresql-full-install-version-1.14.0.RELEASE.sql
```
## Docker compose example
Here is an example of the configuration using docker compose. Which starts an app on the port ```8012``` using external postgres databse (separate container):
```
postgres:
build: postgres:9.4.1
expose:
- 5432
volumes:
- ./data-postgres:/var/lib/postgresql/data
squashtm:
image: logicify/squash-tm:latest
ports:
- "8012:8080"
environment:
DB_URL: jdbc:postgresql://postgres:5432/squashtm
DB_USERNAME: squashtm
DB_PASSWORD: your-password
DB_DIALECT: org.hibernate.dialect.PostgreSQLDialect
DB_DRIVER: org.postgresql.Driver
links:
- postgres:postgres
```