Никак не могу понять почему проект запускается и сразу выключается
Docker:
client-1 | 2025-04-22T14:31:45.773Z INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
client-1 | 2025-04-22T14:31:46.099Z INFO 1 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@4779aae6
client-1 | 2025-04-22T14:31:46.108Z INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
client-1 | 2025-04-22T14:31:46.182Z INFO 1 --- [ main] org.flywaydb.core.FlywayExecutor : Database: jdbc:postgresql://postgres:5432/schema (PostgreSQL 14.17)
client-1 | 2025-04-22T14:31:46.303Z INFO 1 --- [ main] o.f.c.i.s.JdbcTableSchemaHistory : Schema history table "public"."flyway_schema_history" does not exist yet
client-1 | 2025-04-22T14:31:46.317Z INFO 1 --- [ main] o.f.core.internal.command.DbValidate : Successfully validated 1 migration (execution time 00:00.048s)
client-1 | 2025-04-22T14:31:46.361Z INFO 1 --- [ main] o.f.c.i.s.JdbcTableSchemaHistory : Creating Schema History table "public"."flyway_schema_history" ...
client-1 | 2025-04-22T14:31:46.590Z INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Current version of schema "public": << Empty Schema >>
client-1 | 2025-04-22T14:31:46.635Z INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "1 - init"
client-1 | 2025-04-22T14:31:46.914Z INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Successfully applied 1 migration to schema "public", now at version v1 (execution time 00:00.207s)
client-1 | 2025-04-22T14:31:47.110Z INFO 1 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
client-1 | 2025-04-22T14:31:47.219Z INFO 1 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.6.11.Final
client-1 | 2025-04-22T14:31:47.303Z INFO 1 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
client-1 | 2025-04-22T14:31:47.696Z INFO 1 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
client-1 | 2025-04-22T14:31:47.870Z INFO 1 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info:
client-1 | Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
client-1 | Database driver: undefined/unknown
client-1 | Database version: 14.17
client-1 | Autocommit mode: undefined/unknown
client-1 | Isolation level: undefined/unknown
client-1 | Minimum pool size: undefined/unknown
client-1 | Maximum pool size: undefined/unknown
client-1 | 2025-04-22T14:31:49.154Z INFO 1 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
client-1 | 2025-04-22T14:31:49.162Z INFO 1 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
client-1 | 2025-04-22T14:31:50.053Z INFO 1 --- [ main] com.olbBot.OlbBotApplication : Started OlbBotApplication in 8.446 seconds (process running for 9.612)
client-1 | 2025-04-22T14:31:50.069Z INFO 1 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
client-1 | 2025-04-22T14:31:50.073Z INFO 1 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
client-1 | 2025-04-22T14:31:50.102Z INFO 1 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
application.properties:
spring.datasource.url=jdbc:postgresql://postgres:5432/schema
spring.datasource.username=username
spring.datasource.password=passwordForMyBot
spring.datasource.driver-class-name=org.postgresql.Driver
spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration
bot.name=ourPrettyBotForSmth_bot
bot.token=*******************************
V1__init.sql:
CREATE TABLE stats(
id BIGSERIAL PRIMARY KEY NOT NULL,
label VARCHAR(255) NOT NULL,
number INTEGER NOT NULL
);
INSERT INTO stats (label, number)
VALUES ('Тест', 52);