-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 812 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (32 loc) · 812 Bytes
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
version: "3"
services:
nginx-proxy:
build: ./infra/nginx
container_name: nginx_proxy
image: proxy-network
ports:
- 80:80
- 443:443
networks:
- my_proxy_network
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs
- ./.htpasswd:/etc/nginx/htpasswd
- ./vhost.d:/etc/nginx/vhost.d
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
environment:
- NGINX_PROXY_CONTAINER=nginx_proxy
networks:
- my_proxy_network
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:/etc/nginx/certs
- ./vhost.d:/etc/nginx/vhost.d
- /usr/share/nginx/html
networks:
my_proxy_network:
external: true
name: my_proxy_network