-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose-https.yml
50 lines (50 loc) · 1014 Bytes
/
docker-compose-https.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
services:
weblate:
image: weblate/weblate
tmpfs:
- /run
- /tmp
volumes:
- weblate-data:/app/data
- weblate-cache:/app/cache
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
environment:
WEBLATE_ENABLE_HTTPS: 1
WEBLATE_IP_PROXY_HEADER: HTTP_X_FORWARDED_FOR
database:
image: postgres:17-alpine
env_file:
- ./environment
volumes:
- postgres-data:/var/lib/postgresql/data
restart: always
cache:
image: redis:7-alpine
restart: always
read_only: true
command: [redis-server, --save, '60', '1']
volumes:
- redis-data:/data
https-portal:
image: steveltn/https-portal:1
ports:
- 80:80
- 443:443
restart: always
environment:
STAGE: production
PROXY_READ_TIMEOUT: 3600
volumes:
- ssl-certs:/var/lib/https-portal
volumes:
weblate-cache: {}
weblate-data: {}
postgres-data: {}
redis-data: {}
ssl-certs: {}