49 lines
975 B
YAML
49 lines
975 B
YAML
version: "2.1"
|
|
|
|
services:
|
|
nginx-proxy:
|
|
image: jwilder/nginx-proxy
|
|
container_name: nginx-proxy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- conf:/etc/nginx/conf.d
|
|
- vhost:/etc/nginx/vhost.d
|
|
- html:/usr/share/nginx/html
|
|
- dhparam:/etc/nginx/dhparam
|
|
- certs:/etc/nginx/certs:ro
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- ./proxy.conf:/etc/nginx/conf.d/proxy.conf:ro
|
|
networks:
|
|
- web
|
|
restart: unless-stopped
|
|
|
|
letsencrypt:
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
container_name: nginx-proxy-le
|
|
volumes_from:
|
|
- nginx-proxy
|
|
volumes:
|
|
- certs:/etc/nginx/certs:rw
|
|
- acme:/etc/acme.sh
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
networks:
|
|
- web
|
|
environment:
|
|
- DEFAULT_EMAIL=le@forgejo.dev
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
conf:
|
|
vhost:
|
|
html:
|
|
dhparam:
|
|
certs:
|
|
acme:
|
|
|
|
networks:
|
|
web:
|
|
external:
|
|
name: webshare
|