|
1 | | -# image,docs: https://hub.docker.com/_/wordpress/ |
2 | | - |
3 | 1 | services: |
| 2 | + broker: |
| 3 | + image: docker.io/library/redis:7 |
| 4 | + container_name: $W9_ID-redis |
| 5 | + restart: unless-stopped |
| 6 | + volumes: |
| 7 | + - redisdata:/data |
| 8 | + |
| 9 | + db: |
| 10 | + image: docker.io/library/postgres:16 |
| 11 | + container_name: $W9_ID-postgres |
| 12 | + restart: unless-stopped |
| 13 | + volumes: |
| 14 | + - dbdata:/var/lib/mysql |
| 15 | + environment: |
| 16 | + POSTGRES_DB: paperlessngx |
| 17 | + POSTGRES_USER: postgres |
| 18 | + POSTGRES_PASSWORD: $W9_POWER_PASSWORD |
4 | 19 |
|
5 | | - wordpress: |
| 20 | + webserver: |
6 | 21 | image: $W9_REPO:$W9_VERSION |
7 | 22 | container_name: $W9_ID |
8 | 23 | restart: unless-stopped |
9 | | - #This is for access host from container |
10 | | - # extra_hosts: ["host.docker.internal:host-gateway"] |
11 | | - # command: | |
12 | | - # /bin/bash -c "ping -c 3 host.docker.internal" |
13 | | - logging: |
14 | | - driver: "json-file" |
15 | | - options: |
16 | | - max-file: "5" |
17 | | - max-size: 10m |
18 | | - deploy: |
19 | | - resources: |
20 | | - limits: |
21 | | - memory: 5g |
22 | | - cpus: '0.7' |
| 24 | + depends_on: |
| 25 | + - db |
| 26 | + - broker |
| 27 | + - gotenberg |
| 28 | + - tika |
23 | 29 | ports: |
24 | | - - $W9_HTTP_PORT_SET:80 |
25 | | - env_file: .env |
| 30 | + - $W9_HTTP_PORT_SET:8000 |
26 | 31 | volumes: |
27 | | - - wordpress:/var/www/html |
28 | | - - ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini |
| 32 | + - data:/usr/src/paperless/data |
| 33 | + - media:/usr/src/paperless/media |
| 34 | + - ./export:/usr/src/paperless/export |
| 35 | + - ./consume:/usr/src/paperless/consume |
| 36 | + env_file: .env |
| 37 | + environment: |
| 38 | + PAPERLESS_REDIS: redis://$W9_ID-redis:6379 |
| 39 | + PAPERLESS_DBENGINE: postgresql |
| 40 | + PAPERLESS_DBHOST: $W9_ID-postgres |
| 41 | + PAPERLESS_DBNAME: paperlessngx |
| 42 | + PAPERLESS_DBUSER: postgres |
| 43 | + PAPERLESS_DBPASS: $W9_POWER_PASSWORD |
| 44 | + PAPERLESS_DBPORT: 5432 |
| 45 | + PAPERLESS_TIKA_ENABLED: 1 |
| 46 | + PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://$W9_ID-gotenberg:3000 |
| 47 | + PAPERLESS_TIKA_ENDPOINT: http://$W9_ID-tika:9998 |
29 | 48 |
|
30 | | - mariadb: |
31 | | - image: mariadb:10.4 |
32 | | - container_name: $W9_ID-mariadb |
| 49 | + gotenberg: |
| 50 | + image: docker.io/gotenberg/gotenberg:8.7 |
| 51 | + container_name: $W9_ID-gotenberg |
| 52 | + restart: unless-stopped |
| 53 | + |
| 54 | + # The gotenberg chromium route is used to convert .eml files. We do not |
| 55 | + # want to allow external content like tracking pixels or even javascript. |
| 56 | + command: |
| 57 | + - "gotenberg" |
| 58 | + - "--chromium-disable-javascript=true" |
| 59 | + - "--chromium-allow-list=file:///tmp/.*" |
| 60 | + |
| 61 | + tika: |
| 62 | + image: docker.io/apache/tika:latest |
| 63 | + container_name: $W9_ID-tika |
33 | 64 | restart: unless-stopped |
34 | | - command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_log_buffer_size=30M |
35 | | - volumes: |
36 | | - - mysql_data:/var/lib/mysql |
37 | | - environment: |
38 | | - MYSQL_DATABASE: $W9_ID |
39 | | - MYSQL_USER: $W9_ID |
40 | | - MYSQL_PASSWORD: $W9_POWER_PASSWORD |
41 | | - MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD |
42 | 65 |
|
43 | 66 | volumes: |
44 | | - wordpress: |
45 | | - mysql_data: |
| 67 | + data: |
| 68 | + media: |
| 69 | + dbdata: |
| 70 | + redisdata: |
46 | 71 |
|
47 | 72 | networks: |
48 | 73 | default: |
|
0 commit comments