-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.extra.yml
64 lines (58 loc) · 1.82 KB
/
docker-compose.extra.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3"
services:
########################################
# PostgreSQL
########################################
db:
image: postgres:14
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB:-readflow}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secret}
volumes:
- db-data:/var/lib/postgresql/data
#######################################
# Imgproxy: Image proxy
#######################################
imgproxy:
image: darthsim/imgproxy
environment:
IMGPROXY_KEY: ${READFLOW_HASH_SECRET_KEY:-736563726574}
IMGPROXY_SALT: ${READFLOW_HASH_SECRET_SALT:-706570706572}
IMGPROXY_ENABLE_WEBP_DETECTION: true
logging:
driver: "json-file"
options:
max-size: "1m"
restart: always
#######################################
# Gotengerg: PDF generator
#######################################
gotenberg:
image: gotenberg/gotenberg:7
restart: always
########################################
# readflow
########################################
readflow:
#build: .
image: "ncarlier/readflow:edge"
restart: always
depends_on:
- db
ports:
- "${PORT:-8080}:8080"
environment:
- READFLOW_DATABASE_URI=postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-secret}@db/${POSTGRES_DB:-readflow}?sslmode=disable
- READFLOW_METRICS_LISTEN_ADDR=:9090
- READFLOW_IMAGE_PROXY_URL=http://imagor:8080
- READFLOW_PDF_SERVICE_PROVIDER=http://gotenberg:3000/forms/chromium/convert/html
- READFLOW_AUTHN_METHOD=basic
- READFLOW_AUTHN_BASIC_HTPASSWD_FILE=file:///var/local/demo.htpasswd # "demo" as username and password
volumes:
- ${PWD}/var/demo.htpasswd:/var/local/demo.htpasswd
networks:
default:
volumes:
db-data: