-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdocker-compose-reproxy.yml
More file actions
58 lines (48 loc) · 1.16 KB
/
docker-compose-reproxy.yml
File metadata and controls
58 lines (48 loc) · 1.16 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
services:
secrets:
build: .
image: umputun/secrets:latest
container_name: secrets
hostname: secrets
restart: always
logging: &default_logging
driver: json-file
options:
max-size: "10m"
max-file: "5"
volumes:
- ./var:/data
environment:
- SIGN_KEY=change-this-to-smth-random
- ENGINE=MEMORY
- PIN_SIZE=5
- BOLT_FILE=/data/secrets.bd
- PIN_ATTEMPTS=3
- MAX_EXPIRE=24h
- DOMAIN=secrets.example.com
labels:
- "reproxy.server=secrets.example.com"
- "reproxy.route=^/(.*)"
- "reproxy.dest=/$1"
- "reproxy.port=8080"
reproxy:
image: umputun/reproxy:latest
container_name: reproxy
hostname: reproxy
restart: always
logging: *default_logging
depends_on:
- secrets
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./var/acme:/var/acme
ports:
- "80:8080"
- "443:8443"
environment:
- TZ=America/Chicago
- DOCKER_ENABLED=true
- SSL_TYPE=auto
- SSL_ACME_LOCATION=/var/acme
- SSL_ACME_EMAIL=admin@example.com
- SSL_FQDN=secrets.example.com