From 04ca9c09a5e86d8ec15c3eab0e850f95ec41d557 Mon Sep 17 00:00:00 2001 From: lab Date: Thu, 2 Dec 2021 23:20:07 +0800 Subject: [PATCH] feat: add database/postgres --- database/docker-compose.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 database/docker-compose.yml diff --git a/database/docker-compose.yml b/database/docker-compose.yml new file mode 100644 index 0000000..1f21545 --- /dev/null +++ b/database/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3.9" + +services: + postgresql: + image: postgres:alpine + container_name: "postgresql" + environment: + - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" + volumes: + - ./data:/var/lib/postgresql/data + networks: + - database +networks: + database: + external: true \ No newline at end of file