Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a45085b

Browse filesBrowse files
authored
Persistent storage for docker files (#723)
1 parent 07ee41c commit a45085b
Copy full SHA for a45085b

File tree

3 files changed

+14
-0
lines changed
Filter options

3 files changed

+14
-0
lines changed

‎docker-compose.cuda.yml

Copy file name to clipboardExpand all lines: docker-compose.cuda.yml
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ services:
2121
command:
2222
- sleep
2323
- infinity
24+
volumes:
25+
- postgres-data:/var/lib/postgresql/14/main/
26+
2427
dashboard:
2528
depends_on:
2629
postgres:
@@ -44,3 +47,5 @@ services:
4447
- mkdocs
4548
- serve
4649
- -a 0.0.0.0:8001
50+
volumes:
51+
postgres-data:

‎docker-compose.local.yml

Copy file name to clipboardExpand all lines: docker-compose.local.yml
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ services:
1313
dockerfile: Dockerfile.local
1414
ports:
1515
- "5433:5432"
16+
volumes:
17+
- postgres-data:/var/lib/postgresql/14/main/
18+
volumes:
19+
postgres-data:

‎docker-compose.yml

Copy file name to clipboardExpand all lines: docker-compose.yml
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ services:
1414
command:
1515
- sleep
1616
- infinity
17+
volumes:
18+
- postgres-data:/var/lib/postgresql/14/main/
1719
dashboard:
1820
depends_on:
1921
postgres:
@@ -27,3 +29,6 @@ services:
2729
ROCKET_ADDRESS: 0.0.0.0
2830
DATABASE_URL: postgres://postgres:postgres@postgres:5432/pgml_development
2931
command: bash -c "sqlx migrate run && cargo run"
32+
33+
volumes:
34+
postgres-data:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.