aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-25 09:32:42 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-25 09:32:42 +0000
commit606094496d977fbd9426d9e1e4d61daeddb30150 (patch)
tree5420b74499afe5f5653d4bdc457464c0da6d8b21 /docker-compose.yaml
parentupdates (diff)
downloadmdrtl-606094496d977fbd9426d9e1e4d61daeddb30150.tar.gz
mdrtl-606094496d977fbd9426d9e1e4d61daeddb30150.zip
added a fatjar task
Diffstat (limited to '')
-rw-r--r--docker-compose.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
new file mode 100644
index 0000000..f3c7718
--- /dev/null
+++ b/docker-compose.yaml
@@ -0,0 +1,36 @@
+version: "3"
+services:
+ server:
+ postgres:
+ image: postgres:14-alpine
+ networks:
+ - dbnet
+ volumes:
+ - db-data:/var/lib/postgresql/14/
+ ports:
+ - "5432:5432"
+ environment:
+ - POSTGRES_PASSWORD_FILE=/run/secrets/pg_pass_secret
+ - POSTGRES_USER_FILE=/run/secrets/pg_user_secret
+ - POSTGRES_INITDB_ARGS_FILE=/run/secrets/pg_initdb_args_secret
+ - POSTGRES_DB_FILE=/run/secrets/pg_db_secret
+ secrets:
+ - pg_pass_secret
+ - pg_user_secret
+ - pg_initdb_args_secret
+ - pg_db_secret
+ cap_drop:
+ - ALL
+networks:
+ dbnet:
+volumes:
+ db-data:
+secrets:
+ pg_pass_secret:
+ file: ./postgres/pg_pass_secret
+ pg_user_secret:
+ file: ./postgres/pg_user_secret
+ pg_initdb_args_secret:
+ file: ./postgres/pg_initdb_args_secret
+ pg_db_secret:
+ file: ./postgres/pg_db_secret