File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
services :
2
- data :
3
- image : silintl/data-volume:latest
4
- volumes :
5
- - ./application:/data
6
-
7
2
# See https://hub.docker.com/_/postgres/ for details of the postgres image.
8
3
# POSTGRES_PASSWORD - superuser password for PostgreSQL
9
4
# POSTGRES_USER - superuser (default is 'postgres')
10
5
# POSTGRES_DB - name of default database (default is value of POSTGRES_USER)
11
6
db :
12
7
image : postgres:14.11-alpine3.19
13
- volumes_from :
14
- - data
8
+ volumes :
9
+ - ./application:/ data
15
10
ports :
16
11
- " 5432"
17
12
environment :
@@ -25,8 +20,8 @@ services:
25
20
# DB_NAME - name of database to back up/restore
26
21
restore :
27
22
build : ./
28
- volumes_from :
29
- - data
23
+ volumes :
24
+ - ./application:/ data
30
25
env_file :
31
26
- ./local.env
32
27
environment :
@@ -41,8 +36,8 @@ services:
41
36
42
37
backup :
43
38
build : ./
44
- volumes_from :
45
- - data
39
+ volumes :
40
+ - ./application:/ data
46
41
env_file :
47
42
- ./local.env
48
43
environment :
You can’t perform that action at this time.
0 commit comments