mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
32 lines
733 B
YAML
32 lines
733 B
YAML
version: '2.2'
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: nginx-proxy
|
|
|
|
services:
|
|
nginx:
|
|
image: jwilder/nginx-proxy
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
|
- ./nginx/vhost.d:/etc/nginx/vhost.d
|
|
- ./nginx/html:/usr/share/nginx/html
|
|
- ./nginx/certs:/etc/nginx/certs:ro
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
restart: always
|
|
|
|
letsencrypt-companion:
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
# environment:
|
|
# - DEBUG=true
|
|
volumes_from:
|
|
- nginx
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ./nginx/certs:/etc/nginx/certs:rw
|
|
restart: always
|