Add restart policy to docker compose
This commit is contained in:
		@@ -1,14 +1,18 @@
 | 
				
			|||||||
version: '2'
 | 
					version: '2'
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  db:
 | 
					  db:
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
    image: postgres
 | 
					    image: postgres
 | 
				
			||||||
  redis:
 | 
					  redis:
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
    image: redis
 | 
					    image: redis
 | 
				
			||||||
  neo4j:
 | 
					  neo4j:
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
    build:
 | 
					    build:
 | 
				
			||||||
      context: .
 | 
					      context: .
 | 
				
			||||||
      dockerfile: Dockerfile.neo4j
 | 
					      dockerfile: Dockerfile.neo4j
 | 
				
			||||||
  web:
 | 
					  web:
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
    build:
 | 
					    build:
 | 
				
			||||||
      context: .
 | 
					      context: .
 | 
				
			||||||
      dockerfile: Dockerfile.app
 | 
					      dockerfile: Dockerfile.app
 | 
				
			||||||
@@ -24,6 +28,7 @@ services:
 | 
				
			|||||||
      - ./public/assets:/mastodon/public/assets
 | 
					      - ./public/assets:/mastodon/public/assets
 | 
				
			||||||
      - ./public/system:/mastodon/public/system
 | 
					      - ./public/system:/mastodon/public/system
 | 
				
			||||||
  sidekiq:
 | 
					  sidekiq:
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
    build:
 | 
					    build:
 | 
				
			||||||
      context: .
 | 
					      context: .
 | 
				
			||||||
      dockerfile: Dockerfile.app
 | 
					      dockerfile: Dockerfile.app
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user