Use docker compose to start and stop containers which match directly to our command overrides

This commit is contained in:
Trenton H
2022-11-29 13:59:48 -08:00
parent 3a74f24e49
commit fed7d3e993
2 changed files with 32 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
# docker-compose file for running paperless testing with actual gotenberg
# and Tika containers for a more end to end test of the Tika related functionality
# Can be used locally or by the CI to start the nessecary containers with the
# correct networking for the tests
version: "3.7"
services:
gotenberg:
image: docker.io/gotenberg/gotenberg:7.6
hostname: gotenberg
container_name: gotenberg
network_mode: host
restart: unless-stopped
command:
- "gotenberg"
- "--chromium-disable-routes=true"
tika:
image: ghcr.io/paperless-ngx/tika:latest
hostname: tika
container_name: tika
network_mode: host
restart: unless-stopped