diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..e3bcd54 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,26 @@ +version: '3.0' + +services: + db: + image: "postgres:11" + ports: + - "5432:5432" + environment: + - POSTGRES_DB=communication-service-test + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=admin + + spring-boot-app: + depends_on: + - db + image: "maven:3-jdk-11" + ports: + - "8080:8080" + environment: + - DATASOURCE_URL=jdbc:postgresql://db:5432/communication-service-test + - DATASOURCE_USERNAME=communication-service-test + - DATASOURCE_PASSWORD=communication-service-test + volumes: + - .:/app + working_dir: /app + command: mvn clean verify \ No newline at end of file