Skip to content

Commit cf3ba9a

Browse files
committed
add a restart policy to containers, to restart on reboot
1 parent ad8cc20 commit cf3ba9a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
- wwwdata
1111
ports:
1212
- "8020:80"
13+
restart: unless-stopped
1314
wwwdata:
1415
image: busybox
1516
volumes:
@@ -23,12 +24,14 @@ services:
2324
# - bbmaster
2425
volumes_from:
2526
- wwwdata
27+
restart: unless-stopped
2628

2729
postgres:
2830
build: postgres
2931
env_file: confidential.env
3032
volumes_from:
3133
- dbdata
34+
restart: unless-stopped
3235
dbdata:
3336
image: busybox
3437
volumes:
@@ -52,6 +55,7 @@ services:
5255
# - ./buildbot/repos:/root/repos
5356
# ports:
5457
# - "9989:9989"
58+
# restart: unless-stopped
5559
# bbcentos764:
5660
# build: buildbot/docker-builders/centos7-64
5761
# env_file: confidential.env
@@ -61,13 +65,16 @@ services:
6165
# - apparmor:unconfined
6266
# links:
6367
# - bbmaster
68+
# restart: unless-stopped
6469
# bbstretch64:
6570
# build: buildbot/docker-builders/stretch-64
6671
# env_file: confidential.env
6772
# links:
6873
# - bbmaster
74+
# restart: unless-stopped
6975
# bbstretch32:
7076
# build: buildbot/docker-builders/stretch-32
7177
# env_file: confidential.env
7278
# links:
7379
# - bbmaster
80+
# restart: unless-stopped

0 commit comments

Comments
 (0)