Skip to content

Commit d6245cc

Browse files
committed
docker prod autorestart
1 parent f6ea6cb commit d6245cc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docker-compose.prod.yml

+5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ version: '2'
22
services:
33
web:
44
image: zurfyx/nyao:latest
5+
restart: unless-stopped
56
volumes:
67
- /app
78
- ./config:/app/config
89
- ./data:/app/data
10+
mongo:
11+
restart: unless-stopped
12+
redis:
13+
restart: unless-stopped

docker-compose.yml

-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ services:
1414
- redis
1515
mongo:
1616
image: mongo
17-
restart: unless-stopped
1817
command: --smallfiles
1918
volumes:
2019
- ./data/mongo:/data/mongo
2120
redis:
2221
image: redis
23-
restart: unless-stopped
2422
volumes:
2523
- ./data/redis:/data/redis

0 commit comments

Comments
 (0)