Dockerで動かす用

This commit is contained in:
suti7yk5032 2024-08-10 17:06:53 +09:00
parent c4b4718583
commit 425edead34
2 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View file

@ -163,3 +163,4 @@ cython_debug/
config/
db/
test.py
data/

19
compose_db.yml Normal file
View file

@ -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: