-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml.sample
65 lines (60 loc) · 1.93 KB
/
docker-compose.yml.sample
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
version: '3.7'
#networks
networks:
#network reverse-proxy
reverse-proxy:
external: true
name: reverse-proxy
#services
services:
#service nginx-proxy
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: unless-stopped
networks:
- reverse-proxy
volumes:
- $HOME/certs:/etc/nginx/certs:ro
- /etc/nginx/vhost.d:/etc/nginx/vhost.d
- /usr/share/nginx/html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
- .docker/nginx-proxy/etc/nginx/conf.d/server_tokens.conf:/etc/nginx/conf.d/server_tokens.conf:ro
- .docker/nginx-proxy/etc/nginx/conf.d/client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
- .docker/nginx-proxy/etc/nginx/conf.d/timeout.conf:/etc/nginx/conf.d/timeout.conf:ro
- .docker/nginx-proxy/etc/nginx/vhost.d/default_location:/etc/nginx/vhost.d/default_location:ro
ports:
- 80:80
- 443:443
#service nginx-letsencrypt
nginx-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-letsencrypt
restart: unless-stopped
depends_on:
- nginx-proxy
networks:
- reverse-proxy
volumes:
- $HOME/certs:/etc/nginx/certs:rw
- /etc/nginx/vhost.d:/etc/nginx/vhost.d
- /usr/share/nginx/html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
tevun:
container_name: tevun
image: tevun/server:1.0
networks:
- reverse-proxy
restart: unless-stopped
privileged: true
volumes:
- .:/app
- .users:/etc/nginx/.users
- /var/run/docker.sock:/var/run/docker.sock:ro
# - .docker/tevun/etc/nginx/local.tevun.com.crt:/etc/nginx/local.tevun.com.crt
# - .docker/tevun/etc/nginx/local.tevun.com.key:/etc/nginx/local.tevun.com.key
# ports:
# - ${TEVUN_PORT_HTTP}:80
# - ${TEVUN_PORT_HTTPS}:443