blob: 8f1eff22d45057004eeb16d733a5ac24215a1a46 (
plain) (
blame)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
services:
send:
profiles: [services]
build:
context: ./send
restart: always
ports:
- '1234:1234'
environment:
- VIRTUAL_PORT=1234
- VIRTUAL_HOST=send.ediblemonad.dev
- LETSENCRYPT_HOST=send.ediblemonad.dev
- DHPARAM_GENERATION=false
# send
- NODE_ENV=production
- BASE_URL=https://send.ediblemonad.dev
- PORT=1234
- REDIS_HOST=redis
- FILE_DIR=/uploads
- EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000
- DEFAULT_EXPIRE_SECONDS=86400
- MAX_EXPIRE_SECONDS=2592000 # 30 days
- MAX_DOWNLOADS=100
- MAX_FILE_SIZE=536870912 # 512M
volumes:
- ${SEND_UPLOADS_ROOT:-/uploads}:/uploads
depends_on:
- redis
cgit:
profiles: [services]
build:
context: ./cgit
restart: always
ports:
- 8080:80
environment:
- VIRTUAL_PORT=80
- VIRTUAL_HOST=git.ediblemonad.dev
- LETSENCRYPT_HOST=git.ediblemonad.dev
- DHPARAM_GENERATION=false
- USE_CUSTOM_CONFIG=true
deploy:
resources:
limits:
cpus: '0.5'
reservations:
cpus: '0.2'
volumes:
- cgit-cache:/var/cache/cgit
- ${GIT_REPOS_ROOT:-/git}:/srv/git:ro
- ./cgit/cgitrc:/etc/cgitrc:ro
- ./cgit/static:/usr/share/webapps/cgit/ediblemonad:ro
- ./cgit/filters:/usr/lib/cgit/filters/ediblemonad:ro
- ./favicon.ico:/usr/share/webapps/cgit/favicon.ico:ro
nginx-proxy:
profiles: [core]
container_name: nginx-proxy
image: 'jwilder/nginx-proxy:alpine'
restart: always
ports:
- '80:80'
- '443:443'
environment:
- DEFAULT_HOST=ediblemonad.dev
- 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:
profiles: [core]
image: 'nginxproxy/acme-companion'
restart: always
environment:
- DEFAULT_EMAIL=ediblemonad@gmail.com
- NGINX_PROXY_CONTAINER=nginx-proxy
- NGINX_DOCKER_GEN_CONTAINER=nginx-proxy
- ACME_CA_URI=https://acme-staging-v02.api.letsencrypt.org/directory
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
- acme:/etc/acme.sh
redis:
profiles: [services]
image: 'redis:alpine'
restart: always
volumes:
- redis:/data
volumes:
redis:
cgit-cache:
proxy-certs:
proxy-vhost:
proxy-html:
acme:
|