forked from WeblateOrg/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-https.yml
45 lines (45 loc) · 936 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
version: '3'
services:
weblate:
image: weblate/weblate
volumes:
- weblate-data:/app/data
env_file:
- ./environment
restart: always
depends_on:
- database
- cache
environment:
WEBLATE_ENABLE_HTTPS: 1
WEBLATE_IP_PROXY_HEADER: HTTP_X_FORWARDED_FOR
database:
image: postgres:14-alpine
env_file:
- ./environment
volumes:
- postgres-data:/var/lib/postgresql/data
restart: always
cache:
image: redis:6-alpine
restart: always
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
CLIENT_MAX_BODY_SIZE: 100M
volumes:
- ssl-certs:/var/lib/https-portal
volumes:
weblate-data: {}
postgres-data: {}
redis-data: {}
ssl-certs: {}