Skip to content

Commit 846a1b4

Browse files
committed
🐛 restart container on crash
1 parent 502ac5c commit 846a1b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-compose.yml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
networks:
1414
- gradient-network
1515
container_name: backend
16+
restart: always
1617
frontend:
1718
build:
1819
context: ./frontend
@@ -23,6 +24,7 @@ services:
2324
networks:
2425
- gradient-network
2526
container_name: frontend
27+
restart: always
2628
proxy:
2729
build:
2830
context: ./proxy
@@ -43,6 +45,8 @@ services:
4345
- ./certs:/etc/letsencrypt
4446
networks:
4547
- gradient-network
48+
container_name: proxy
49+
restart: always
4650

4751
networks:
4852
gradient-network:

0 commit comments

Comments
 (0)