Add restart policy unless-stopped (#51)
This commit is contained in:
		@@ -9,6 +9,7 @@
 | 
				
			|||||||
version: '2'
 | 
					version: '2'
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  base:
 | 
					  base:
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    build: .
 | 
					    build: .
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      # Run `docker-compose run web config generate-secret-key`
 | 
					      # Run `docker-compose run web config generate-secret-key`
 | 
				
			||||||
@@ -22,20 +23,25 @@ services:
 | 
				
			|||||||
      - ./data/sentry:/var/lib/sentry/files
 | 
					      - ./data/sentry:/var/lib/sentry/files
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  smtp:
 | 
					  smtp:
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    image: tianon/exim4
 | 
					    image: tianon/exim4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  memcached:
 | 
					  memcached:
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    image: memcached:1.4
 | 
					    image: memcached:1.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  redis:
 | 
					  redis:
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    image: redis:3.2-alpine
 | 
					    image: redis:3.2-alpine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  postgres:
 | 
					  postgres:
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    image: postgres:9.5
 | 
					    image: postgres:9.5
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - ./data/postgres:/var/lib/postgresql/data
 | 
					      - ./data/postgres:/var/lib/postgresql/data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  web:
 | 
					  web:
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    extends: base
 | 
					    extends: base
 | 
				
			||||||
    links:
 | 
					    links:
 | 
				
			||||||
      - redis
 | 
					      - redis
 | 
				
			||||||
@@ -46,6 +52,7 @@ services:
 | 
				
			|||||||
      - '9000:9000'
 | 
					      - '9000:9000'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  cron:
 | 
					  cron:
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    extends: base
 | 
					    extends: base
 | 
				
			||||||
    command: run cron
 | 
					    command: run cron
 | 
				
			||||||
    links:
 | 
					    links:
 | 
				
			||||||
@@ -55,6 +62,7 @@ services:
 | 
				
			|||||||
      - smtp
 | 
					      - smtp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  worker:
 | 
					  worker:
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    extends: base
 | 
					    extends: base
 | 
				
			||||||
    command: run worker
 | 
					    command: run worker
 | 
				
			||||||
    links:
 | 
					    links:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user