forked from DecisionsDev/odm-ondocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
odm-standalone-postgres.yml
executable file
·40 lines (38 loc) · 1.23 KB
/
odm-standalone-postgres.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '2'
services:
dbserver:
image: postgres:9.5.10
ports:
- 5432:5432
environment:
- POSTGRES_DB=odmdb
- POSTGRES_USER=odmusr
- POSTGRES_PASSWORD=odmpwd
- PGDATA=/pgdata
# Uncomment this line to persist your data. Note that on OSX you need to share this
# current directory in the Preference menu -> File Sharing menu.
# volumes:
# - ./pgdata:/pgdata
odm-standalone:
image: $REPOSITORY/odm:$ODMVERSION
build:
context: ../
dockerfile: ./$ODMDOCKERDIR/standalone/Dockerfile
args:
- ODMDOCKERDIR=$ODMDOCKERDIR
- ODMVERSION=$ODMVERSION
- ODMDBVERSION=$ODMDBVERSION
- FROMLIBERTY=$FROMLIBERTY
environment:
- DB_TYPE=postgres
# DB_TYPE can be set to "postgres" or "h2". If it is set to "h2" or not set, the H2 embedded database is used.
# DB_DRIVER_URL can be used optionally to override the driver that is used by default for PostgreSQL.
- DB_NAME=odmdb
- DB_USER=odmusr
- DB_PASSWORD=odmpwd
- DB_SERVER_NAME=dbserver
- LICENSE=accept
- JVM_ARGS="-Xmx14000m"
# DB_PORT_NUMBER can be used to override the default port number that is 5432 for PostgreSQL.
ports:
- 9080:9060