social-network/docker-compose.yml
Struchkov Mark eeb14cdca9
Add exception handling and database changes
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.
2024-03-09 20:54:23 +03:00

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: