Browse Source

Add restart policy to docker compose

pull/4/head
Eugen Rochko 5 years ago
parent
commit
19615a2c37
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      docker-compose.yml

+ 5
- 0
docker-compose.yml View File

@ -1,14 +1,18 @@
version: '2'
services:
db:
restart: always
image: postgres
redis:
restart: always
image: redis
neo4j:
restart: always
build:
context: .
dockerfile: Dockerfile.neo4j
web:
restart: always
build:
context: .
dockerfile: Dockerfile.app
@ -24,6 +28,7 @@ services:
- ./public/assets:/mastodon/public/assets
- ./public/system:/mastodon/public/system
sidekiq:
restart: always
build:
context: .
dockerfile: Dockerfile.app

Loading…
Cancel
Save