2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-27 07:31:40 +01:00

fix json-server (FIX #187)

This commit is contained in:
kev
2021-10-11 19:29:24 +08:00
parent c95a77645a
commit 345bbc1996
3 changed files with 29 additions and 20 deletions

View File

@@ -1,8 +1,11 @@
json-server:
image: vimagick/json-server
command: -H 0.0.0.0 -p 3000 -w db.json
ports:
- "3000:3000"
volumes:
- ./data:/data
restart: always
version: "3.8"
services:
json-server:
image: vimagick/json-server
command: -H 0.0.0.0 -p 3000 -w db.json
init: true
ports:
- "3000:3000"
volumes:
- ./data:/data
restart: unless-stopped