29 lines
452 B
YAML
29 lines
452 B
YAML
---
|
|
services:
|
|
nginx:
|
|
container_name: nginx
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "8448:8448" # matrix federation
|
|
volumes:
|
|
- sites:/etc/nginx/conf.d/
|
|
- certs:/etc/letsencrypt/
|
|
- certbotroot:/var/www/certbot/
|
|
networks:
|
|
- nginx
|
|
|
|
volumes:
|
|
sites:
|
|
name: sites
|
|
certs:
|
|
name: certs
|
|
certbotroot:
|
|
name: certbotroot
|
|
|
|
networks:
|
|
nginx:
|
|
name: nginx
|