Skip to content

Commit f4a59d4

Browse files
committed
add custom folder volume to docker compositions
1 parent b596f7e commit f4a59d4

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

docker-compose.mariadb.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ services:
22
server:
33
build:
44
context: .
5+
volumes:
6+
- custom:/app/custom
57
environment:
68
DB_CLIENT: mysql2
79
DB_HOST: mariadb
@@ -39,4 +41,5 @@ services:
3941
expose:
4042
- 6379
4143
volumes:
42-
db_data_mariadb:
44+
db_data_mariadb:
45+
custom:

docker-compose.postgres.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ services:
22
server:
33
build:
44
context: .
5+
volumes:
6+
- custom:/app/custom
57
environment:
68
DB_CLIENT: pg
79
DB_HOST: postgres
@@ -37,4 +39,5 @@ services:
3739
expose:
3840
- 6379
3941
volumes:
40-
db_data_pg:
42+
db_data_pg:
43+
custom:

docker-compose.sqlite-redis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
context: .
55
volumes:
66
- db_data_sqlite:/var/lib/kutt
7+
- custom:/app/custom
78
environment:
89
DB_FILENAME: "/var/lib/kutt/data.sqlite"
910
REDIS_ENABLED: true
@@ -20,4 +21,5 @@ services:
2021
expose:
2122
- 6379
2223
volumes:
23-
db_data_sqlite:
24+
db_data_sqlite:
25+
custom:

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ services:
44
context: .
55
volumes:
66
- db_data_sqlite:/var/lib/kutt
7+
- custom:/app/custom
78
environment:
89
DB_FILENAME: "/var/lib/kutt/data.sqlite"
910
ports:
1011
- 3000:3000
1112
volumes:
12-
db_data_sqlite:
13+
db_data_sqlite:
14+
custom:

0 commit comments

Comments
 (0)