Use docker volume for db data (#315)

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
ekzyis 2023-06-13 03:22:10 +02:00 committed by GitHub
parent 73bb4a0141
commit 3738f08ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,8 @@ services:
- "5431:5432"
env_file:
- ./.env.sample
volumes:
- db:/var/lib/postgresql/data
app:
container_name: app
build: ./
@ -48,3 +50,6 @@ services:
entrypoint: ["/bin/sh", "-c"]
command:
- node worker/index.js
volumes:
db: