From c47bef40cc3b01d0dac1941b9be9ce7229d40af9 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 26 Feb 2022 20:52:03 +0330 Subject: a working dockerfile --- docker-compose.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'docker-compose.yaml') 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: -- cgit v1.2.3