From 425edead340c1f179d1fdc0cd0af764d528cf11b Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sat, 10 Aug 2024 17:06:53 +0900 Subject: [PATCH] =?UTF-8?q?Docker=E3=81=A7=E5=8B=95=E3=81=8B=E3=81=99?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- compose_db.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 compose_db.yml diff --git a/.gitignore b/.gitignore index 89d30ec..98b9a79 100644 --- a/.gitignore +++ b/.gitignore @@ -162,4 +162,5 @@ cython_debug/ config/ db/ -test.py \ No newline at end of file +test.py +data/ \ No newline at end of file diff --git a/compose_db.yml b/compose_db.yml new file mode 100644 index 0000000..af5ba48 --- /dev/null +++ b/compose_db.yml @@ -0,0 +1,19 @@ +services: + db: + image: postgres:alpine3.20 + restart: always + environment: + - TZ=Asia/Tokyo + volumes: + - ./data/db:/var/lib/postgresql/data + ports: + - 12245:5432 + environment: + - POSTGRES_DB=dislocker + - POSTGRES_USER=dislocker + - POSTGRES_PASSWORD=Password + networks: + - dislocker_network + +networks: + dislocker_network: