Struchkov Mark
eeb14cdca9
New exception handlers have been added and database setup files introduced. This update also deletes unnecessary Docker and Java files, and modifies various files related to error handling and database changes. Exception handlers for runtime, social network, and not found exceptions are added to improve error feedback in the application. Database setup includes a Liquibase changelog and SQL scripts to create the person table in the database.
39 lines
844 B
YAML
39 lines
844 B
YAML
services:
|
|
|
|
myspace-database:
|
|
image: postgres:15-alpine
|
|
hostname: myspace-database
|
|
container_name: myspace-database
|
|
networks:
|
|
myspace-database:
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_DB: myspace
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: ${DATASOURCE_PASSWORD}
|
|
volumes:
|
|
- myspace-database:/var/lib/postgresql/data/
|
|
|
|
myspace-backend:
|
|
build: .
|
|
image: myspace-backend:jvm
|
|
hostname: myspace-backend
|
|
container_name: myspace-backend
|
|
restart: always
|
|
ports:
|
|
- 8080:8080
|
|
networks:
|
|
myspace-database:
|
|
depends_on:
|
|
- myspace-database
|
|
environment:
|
|
DB_URL: postgresql://myspace-database:5432/myspace
|
|
DB_USERNAME: postgres
|
|
DB_PASSWORD: ${DATASOURCE_PASSWORD}
|
|
|
|
volumes:
|
|
myspace-database:
|
|
|
|
networks:
|
|
myspace-database: |