-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocker-compose-postgres.yml
47 lines (44 loc) · 1.38 KB
/
Docker-compose-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
41
42
43
44
45
46
47
version: '3.4'
volumes:
pg_project:
services:
Klinik:
image: klinika
ports:
- "8082:8082"
build:
context: .
container_name: klinika
depends_on:
- pg_db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://host.docker.internal:5434/Klinika
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=admin
- SPRING_JPA_HIBERNATE_DDL_AUTO=none
- jwt.private.key=classpath:keys/private.pem
- jwt.public.key=classpath:keys/public.pem
- encryption.key=classpath:keys/encryption.key
- encryption.path=/app/keys/encryption.key
- generate.keys.path=/app/keys
# https
#- KEYSTORE=classpath:keystore/klinika.jks
#- SERVER_SSL_KEY-STORE=classpath:keystore/klinika.jks
#- SERVER_SSL_KEY-STORE-PASSWORD=
#- SERVER_SSL_KEY-STORE-ALIAS=
volumes:
- ./src/main/resources/keys:/app/keys
- ./src/main/resources/keystore:/src/main/resources/keystore
pg_db:
image: postgres
container_name: postgres_db
environment:
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=postgres
- POSTGRES_DB=Klinika
volumes:
# init db and fuctions
- ./src/main/resources/db/init_db.sql:/docker-entrypoint-initdb.d/init.sql
- ./src/main/resources/db/function.sql:/docker-entrypoint-initdb.d/function.sql
ports:
- ${POSTGRES_PORT:-5434}:5432