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"
|
- "5431:5432"
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env.sample
|
- ./.env.sample
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data
|
||||||
app:
|
app:
|
||||||
container_name: app
|
container_name: app
|
||||||
build: ./
|
build: ./
|
||||||
@ -47,4 +49,7 @@ services:
|
|||||||
- db
|
- db
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
command:
|
command:
|
||||||
- node worker/index.js
|
- node worker/index.js
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db:
|
Loading…
x
Reference in New Issue
Block a user