From 9d348ebe22aba0caff48e7a97418b527b86b2364 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Tue, 19 Sep 2023 21:47:25 +0200 Subject: [PATCH] Add docker-compose file --- .gitignore | 1 + docker-compose.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 docker-compose.yaml diff --git a/.gitignore b/.gitignore index 2ab300b..68e07ab 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ target out *.iml .DS_Store +.env diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..60626a6 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,17 @@ +version: "3.8" +services: + db: + image: postgres:16-alpine3.18 + environment: + POSTGRES_PASSWORD: calypso + + web: + build: . + environment: + JDBC_DATABASE_URL: "jdbc:postgresql://db:5432/postgres" + JDBC_DATABASE_USERNAME: postgres + JDBC_DATABASE_PASSWORD: calypso + APPLICATION_URL: http://localhost.datasektionen.se:3000 + env_file: .env + ports: + - "3000:8080"