Use docker volume for db data (#315)
Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
parent
73bb4a0141
commit
3738f08ac2
|
@ -10,6 +10,8 @@ services:
|
|||
- "5431:5432"
|
||||
env_file:
|
||||
- ./.env.sample
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data
|
||||
app:
|
||||
container_name: app
|
||||
build: ./
|
||||
|
@ -47,4 +49,7 @@ services:
|
|||
- db
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command:
|
||||
- node worker/index.js
|
||||
- node worker/index.js
|
||||
|
||||
volumes:
|
||||
db:
|
Loading…
Reference in New Issue