Switch Database To Use A Volume
This commit is contained in:
parent
63f84029b6
commit
c348600a05
@ -15,12 +15,11 @@ services:
|
|||||||
container_name: sodoff-jsgr-db
|
container_name: sodoff-jsgr-db
|
||||||
image: postgres:16.2-alpine
|
image: postgres:16.2-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: 1000:1000
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: sodoff
|
POSTGRES_USER: sodoff
|
||||||
POSTGRES_DB: sodoffdb
|
POSTGRES_DB: sodoffdb
|
||||||
volumes:
|
volumes:
|
||||||
- ./db_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user