-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 937 Bytes
/
docker-compose.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
version: '3'
services:
postgres:
build:
context: ./postgresql
dockerfile: Dockerfile
command: -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=stemp
volumes:
- "../db:/docker-entrypoint-initdb.d"
ports:
- "11432:5432"
stemp:
build:
context: ./build/docker
dockerfile: Dockerfile
depends_on:
- "postgres"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres/stemp
entrypoint:
java -cp /app/resources:/app/classes:/app/libs/* se.lixi.stemp.Application
# java -Djdk.tls.client.enableSessionTicketExtension=false -cp /app/resources:/app/classes:/app/libs/* se.lixi.stemp.Application
deploy:
resources:
limits:
memory: 400m
ports:
- "8081:8081"