Skip to content

Commit f9a805b

Browse files
committed
Omogočil nastavljanje mape za PG volume
1 parent 310b884 commit f9a805b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/django.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
build:
77
env:
88
POSTGRES_VERSION: 12
9+
POSTGRES_DATA_PATH: ./data/db
910
POSTGRES_DB: postgres
1011
POSTGRES_USER: postgres
1112
POSTGRES_PASSWORD: postgres

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
image: postgres:${POSTGRES_VERSION}
66
restart: always
77
volumes:
8-
- ./data/db:/var/lib/postgresql/data
8+
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data
99
environment:
1010
- POSTGRES_DB
1111
- POSTGRES_USER

example.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
POSTGRES_VERSION=12
2+
POSTGRES_DATA_PATH=./data/db
23
POSTGRES_DB=postgres
34
POSTGRES_USER=postgres
45
POSTGRES_PASSWORD=postgres

0 commit comments

Comments
 (0)