Skip to content

Commit 957e350

Browse files
committed
Add deploy to docker-compose.prod redis config
1 parent 5149c66 commit 957e350

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker-compose.prod.yml

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ services:
1212
- '/var/lib/postgresql/data:/var/lib/postgresql/data/'
1313
redis:
1414
image: 'redis:alpine'
15+
deploy:
16+
replicas: 1
17+
restart_policy:
18+
condition: on-failure
1519
nerd_herder:
1620
build:
1721
context: .
@@ -23,6 +27,9 @@ services:
2327
condition: on-failure
2428
env_file:
2529
- nerd_herder.env
30+
depends_on:
31+
- redis
32+
- postgres
2633
links:
2734
- redis
2835
- postgres

0 commit comments

Comments
 (0)