forked from BBMRI-ERIC/negotiator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.develop.yml
36 lines (36 loc) · 1.04 KB
/
docker-compose.develop.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
version: "3.4"
services:
negotiator:
image: bbmri/negotiator:3.0.0
build:
context: ./
dockerfile: Dockerfile
args:
- BRANCH=develop
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/negotiator
- SPRING_DATASOURCE_USERNAME=negotiator
- SPRING_DATASOURCE_PASSWORD=negotiator
- SPRING_DATASOURCE_INITIALIZE=true
- SPRING_DATASOURCE_DATA=file:/data.sql
- SPRING_DATASOURCE_INITIALIZATION-MODE=always
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- OAUTH2_ISSUER=
ports:
- "8080:8080"
depends_on:
- postgres
entrypoint: [ "java","-jar", "-Dspring.profiles.active=docker", "/negotiator-application-3.0.1.jar" ]
postgres:
image: postgres:11-alpine
environment:
- POSTGRES_USER=negotiator
- POSTGRES_PASSWORD=negotiator
- POSTGRES_DB=negotiator
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
command: -c 'shared_buffers=256MB' -c 'max_locks_per_transaction=1024'
volumes:
db-data: