add restart: always

This commit is contained in:
李扬 2018-03-09 16:58:20 +08:00 committed by GitHub
parent 3f6196692a
commit b0b80dc792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ services:
judge-server: judge-server:
image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server
container_name: judge-server container_name: judge-server
restart: always
read_only: true read_only: true
cap_drop: cap_drop:
- SETPCAP - SETPCAP
@ -46,6 +47,7 @@ services:
oj-backend: oj-backend:
image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/oj_backend image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/oj_backend
container_name: oj-backend container_name: oj-backend
restart: always
depends_on: depends_on:
- oj-redis - oj-redis
- oj-postgres - oj-postgres