Skip to content

Commit b614978

Browse files
committed
Feature: mount data dir for persistence
1 parent 726428d commit b614978

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compose.development.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
- "3002:3000"
1010
volumes:
1111
- ./src:/app/src
12+
- ./data:/app/data
1213
- ./internal:/app/internal
1314
# - ./pkg:/app/pkg
1415
- ./.air.toml:/app/.air.toml
@@ -25,6 +26,7 @@ services:
2526
- "2345:2345"
2627
volumes:
2728
- ./src:/app/src
29+
- ./data:/app/data
2830
- ./internal:/app/internal
2931
# - ./pkg:/app/pkg
3032
- ./.air.debug.toml:/app/.air.toml

compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ services:
44
target: Production
55
container_name: application
66
restart: always
7+
volumes:
8+
- ./data:/app/data

0 commit comments

Comments
 (0)