2024-09-06 16:54:26 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
vaadin-app:
|
|
|
|
image: vaadin-app
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
environment:
|
|
|
|
SPRING_DATASOURCE_URL: ${DB_ADDRESS}
|
|
|
|
SPRING_DATASOURCE_USERNAME: ${DB_USER}
|
|
|
|
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:13
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: ${DB_NAME}
|
|
|
|
POSTGRES_USER: ${DB_USER}
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
2024-09-06 18:30:32 +00:00
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db_data:
|