-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1.05 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
version: '3.8'
services:
eav-platform-database:
image: postgres:16.1
container_name: eav-platform-database
restart: unless-stopped
environment:
POSTGRES_DB: eav-platform
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
logging:
options:
max-size: 10m
max-file: "5"
ports:
- "9432:5432"
networks:
- eav-platform-network
volumes:
- eav-platform-data:/var/lib/postgresql/data
- ./.scripts/001-init-db-schema.sql:/docker-entrypoint-initdb.d/init.sql
eav-platform:
build:
context: .
dockerfile: Dockerfile
container_name: eav-platform-app
depends_on:
- eav-platform-database
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://eav-platform-database:5432/eav-platform
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
ports:
- "9090:8080"
networks:
- eav-platform-network
volumes:
eav-platform-data:
networks:
eav-platform-network: