-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (64 loc) · 1.68 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.6'
services:
db:
image: postgis/postgis
container_name: ev-charger-app-db
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: db
ports:
- target: 5432
published: 5432
protocol: tcp
mode: host
volumes:
- db_persdata:/var/lib/postgrespers
networks:
- backdb
expose:
- 5432
backend:
image: norberttalpos/ev-charger-app-backend:latest
container_name: ev-charger-app-backend
environment:
WAIT_HOSTS: postgres:5432
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/db
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
SPRING_FLYWAY_URL: jdbc:postgresql://db:5432/db
SPRING_FLYWAY_USER: postgres
SPRING_FLYWAY_PASSWORD: postgres
JWT_HEADER: Authorization
SPRING_JPA_DATABASE_PLATFORM: org.hibernate.spatial.dialect.postgis.PostgisDialect
SPRING_MAIL_HOST: smtp.gmail.com
SPRING_MAIL_PORT: 587
SPRING_MAIL_USERNAME: ev.charger.app@gmail.com
SPRING_MAIL_PASSWORD: jokerdes
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH: "true"
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE: "true"
SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_TRUST: smtp.gmail.com
ports:
- 8080:8080
- 587:587
depends_on:
- db
networks:
- frontback
- backdb
frontend:
image: norberttalpos/ev-charger-app-frontend:latest
container_name: ev-charger-app-frontend
ports:
- 8081:8080
depends_on:
- backend
networks:
- frontback
networks:
backdb:
driver: bridge
frontback:
driver: bridge
volumes:
db_persdata : {}