Skip to content

Commit

Permalink
[fix] Docker Compose network & volume
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Dec 23, 2023
1 parent d4268a4 commit cea826c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: "3"

volumes:
polyfill-cache:
polyfill-buffer:
driver: juicedata/juicefs
driver_opts:
name: polyfill-cache
metaurl: sqlite3://polyfill-cache.db
name: polyfill-buffer
metaurl: sqlite3://polyfill-buffer.db
storage: ${STORAGE_TYPE}
bucket: ${BUCKET}
access-key: ${ACCESS_KEY}
Expand All @@ -19,11 +19,9 @@ services:
ports:
- 3001:3000
volumes:
- polyfill-cache:/tmp/@wessberg/polyfiller
networks:
- polyfiller
- polyfill-buffer:/tmp/@wessberg/polyfiller
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3001/ || exit 1"]
test: ["CMD-SHELL", "curl -f http://localhost:3000/ || exit 1"]
interval: 3s
retries: 5
start_period: 30s
Expand Down

0 comments on commit cea826c

Please sign in to comment.