aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-26 17:22:03 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-26 17:22:03 +0000
commitc47bef40cc3b01d0dac1941b9be9ce7229d40af9 (patch)
treef4199af340b3a1896ce2c9a1951c5e4c8690762e /docker-compose.yaml
parentadded a fatjar task (diff)
downloadmdrtl-c47bef40cc3b01d0dac1941b9be9ce7229d40af9.tar.gz
mdrtl-c47bef40cc3b01d0dac1941b9be9ce7229d40af9.zip
a working dockerfile
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r--docker-compose.yaml15
1 files changed, 11 insertions, 4 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
index f3c7718..f92cc94 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -1,10 +1,19 @@
version: "3"
services:
server:
+ image: spring
+ build:
+ context: .
+ ports:
+ - "9080:8080"
+ networks:
+ - springnet
+ cap_drop:
+ - ALL
postgres:
image: postgres:14-alpine
networks:
- - dbnet
+ - springnet
volumes:
- db-data:/var/lib/postgresql/14/
ports:
@@ -19,10 +28,8 @@ services:
- pg_user_secret
- pg_initdb_args_secret
- pg_db_secret
- cap_drop:
- - ALL
networks:
- dbnet:
+ springnet:
volumes:
db-data:
secrets: