-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yaml
79 lines (71 loc) · 1.98 KB
/
docker-compose.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3"
services:
nginx-proxy:
container_name: nginx-proxy
image: 'jwilder/nginx-proxy:alpine'
restart: always
ports:
- '80:80'
- '443:443'
environment:
- DEFAULT_HOST=${HOST}
- HSTS=off
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- proxy-certs:/etc/nginx/certs:ro
- proxy-vhost:/etc/nginx/vhost.d
- proxy-html:/usr/share/nginx/html
proxy-letsencrypt:
image: 'jrcs/letsencrypt-nginx-proxy-companion'
restart: always
environment:
- DEFAULT_EMAIL=${LETSENCRYPT_EMAIL}
- NGINX_PROXY_CONTAINER=nginx-proxy
- NGINX_DOCKER_GEN_CONTAINER=nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- proxy-certs:/etc/nginx/certs
- proxy-vhost:/etc/nginx/vhost.d
- proxy-html:/usr/share/nginx/html
send:
image: '${DOCKER_SEND_IMAGE}'
restart: always
ports:
- '1234:1234'
volumes:
- ./uploads:/uploads
environment:
- VIRTUAL_HOST=${HOST}
- VIRTUAL_PORT=1234
- DHPARAM_GENERATION=false
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
- NODE_ENV=production
- BASE_URL=${SEND_BASE_URL}
- PORT=1234
- REDIS_HOST=redis
# For local uploads storage
- FILE_DIR=/uploads
# For S3 object storage (disable volume and FILE_DIR variable)
# - AWS_ACCESS_KEY_ID=********
# - AWS_SECRET_ACCESS_KEY=********
# - S3_BUCKET=send
# - S3_ENDPOINT=s3.us-west-2.amazonaws.com
# - S3_USE_PATH_STYLE_ENDPOINT=true
# To customize upload limits
# - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000
# - DEFAULT_EXPIRE_SECONDS=3600
# - MAX_EXPIRE_SECONDS=31536000
# - DOWNLOAD_COUNTS=1,2,5,10,15,25,50,100,1000
# - MAX_DOWNLOADS=1000
# - MAX_FILE_SIZE=2684354560
redis:
image: 'redis:alpine'
restart: always
volumes:
- send-redis:/data
volumes:
send-redis:
proxy-certs:
proxy-vhost:
proxy-html: