forked from szopszop/appsick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 1.43 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
services:
appsick-db:
container_name: appsick-db
environment:
POSTGRES_PASSWORD: compose-postgres
POSTGRES_USER: compose-postgres
healthcheck:
interval: 10s
retries: 5
test: ["CMD-SHELL", "pg_isready -U compose-postgres"]
timeout: 5s
image: postgres:13.9-alpine
ports:
- published: 5432
target: 5432
appsick-spring:
build:
context: .
dockerfile: Dockerfile
container_name: appsick-spring
depends_on:
appsick-db:
condition: service_healthy
environment:
APPSICK_JWTCOOKIENAME: appsick
APPSICK_JWTEXPIRATIONMS: '11160000'
APPSICK_JWTSECRET: JWT_SECRET
SPRING_DATASOURCE_PASSWORD: compose-postgres
SPRING_DATASOURCE_URL: jdbc:postgresql://appsick-db:5432/compose-postgres
SPRING_DATASOURCE_USERNAME: compose-postgres
SPRING_JPA_DEFER_DATASOURCE_INITIALIZATION: "true"
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT: "org.hibernate.dialect.PostgreSQLDialect"
SPRING_JPA_HIBERNATE_DDL_AUTO: create-drop
SPRING_MAIL_HOST: SMTP_MAIL_HOST
SPRING_MAIL_PASSWORD: SMTP_MAIL_PASS
SPRING_MAIL_PORT: '587'
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH: "true"
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE: "true"
SPRING_MAIL_USERNAME: SMTP_MAIL_USER
SPRING_SQL_INIT_MODE: always
image: appsick-spring
ports:
- published: 8080
target: 8080
version: '3.9'