forked from ncarlier/readflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (56 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
62 lines (56 loc) · 1.63 KB
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
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_DB=postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-secret}@db/${POSTGRES_DB:-readflow}?sslmode=disable
- READFLOW_LISTEN_METRICS=:9090
- READFLOW_IMAGE_PROXY_URL=http://imagor:8080
- READFLOW_AUTHN=file:///var/local/demo.htpasswd
volumes:
- ${PWD}/var/demo.htpasswd:/var/local/demo.htpasswd
networks:
default:
volumes:
db-data: