Skip to content

Commit a318d45

Browse files
committed
Changing restart policy for more accurate
The restart policy was on "always" in the development environment. That is ok for production but for dev no. close #10
1 parent 6dd00b1 commit a318d45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker-compose-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ services:
8080

8181
phpmyadmin:
8282
image: phpmyadmin/phpmyadmin
83-
restart: always
83+
restart: on-failure
8484
environment:
8585
- PMA_HOST=mariadb
8686
links:

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55

66
http_server:
77
image: nginx:1.13.3-alpine
8-
restart: always
8+
restart: on-failure
99
ports:
1010
- "80:80"
1111
volumes:
@@ -31,7 +31,7 @@ services:
3131

3232
mariadb:
3333
image: mariadb
34-
restart: always
34+
restart: on-failure
3535
ports:
3636
- "127.0.0.1:3306:3306"
3737
volumes:
@@ -41,7 +41,7 @@ services:
4141

4242
phpmyadmin:
4343
image: phpmyadmin/phpmyadmin
44-
restart: always
44+
restart: on-failure
4545
environment:
4646
- PMA_HOST=mariadb
4747
links:

0 commit comments

Comments
 (0)