diff --git a/sample/config.json b/sample/config.json index e080bd9..87a7955 100644 --- a/sample/config.json +++ b/sample/config.json @@ -1,6 +1,6 @@ { "database": { - "url": "jdbc:postgresql://127.0.0.1:8091/test", + "url": "jdbc:postgresql://postgres:5432/test", "username": "test", "password": "test", "driver": "org.postgresql.Driver" diff --git a/sample/docker-compose.yml b/sample/docker-compose.yml index e03cc1e..c89f30e 100644 --- a/sample/docker-compose.yml +++ b/sample/docker-compose.yml @@ -11,8 +11,6 @@ services: POSTGRES_DB: "test" volumes: - "./db/:/var/lib/postgresql/data" - ports: - - "127.0.0.1:8091:5432" plaguposter: image: insanusmokrassar/plaguposter:latest container_name: "plaguposter" @@ -21,3 +19,5 @@ services: - "./config.json:/config.json" depends_on: - "plaguposter_postgres" + links: + - "plaguposter_postgres:postgres"