mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Add a dependency link between two containers and change the way Django migrations are done. Provide example for auto-starting the containers
This commit is contained in:
		| @@ -1,12 +1,19 @@ | ||||
| version: '2' | ||||
| version: '2.1' | ||||
|  | ||||
| services: | ||||
|     webserver: | ||||
|         build: ./ | ||||
| 	# uncomment the following line to start automatically on system boot | ||||
| 	# restart: always | ||||
|         ports: | ||||
|             # You can adapt the port you want Paperless to listen on by | ||||
|             # modifying the part before the `:`. | ||||
|             - "8000:8000" | ||||
| 	healthcheck: | ||||
|             test: ["CMD", "curl" , "-f", "http://localhost:8000"] | ||||
|             interval: 30s | ||||
|             timeout: 10s | ||||
|             retries: 5 | ||||
|         volumes: | ||||
|             - data:/usr/src/paperless/data | ||||
|             - media:/usr/src/paperless/media | ||||
| @@ -21,6 +28,11 @@ services: | ||||
|  | ||||
|     consumer: | ||||
|         build: ./ | ||||
| 	# uncomment the following line to start automatically on system boot | ||||
| 	# restart: always | ||||
| 	depends_on: | ||||
|             webserver: | ||||
|                 condition: service_healthy | ||||
|         volumes: | ||||
|             - data:/usr/src/paperless/data | ||||
|             - media:/usr/src/paperless/media | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Georgi Todorov
					Georgi Todorov