media-stack/docker-compose-nginx.yml
2022-07-24 20:49:05 +05:30

23 lines
367 B
YAML

version: '2'
name: nginx
services:
nginx:
image: nginx:1.23.1-alpine
container_name: nginx
networks:
- mynetwork
volumes:
- nginx-config:/etc/nginx
- letsencrypt:/etc/letsencrypt
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
nginx-config:
letsencrypt:
networks:
mynetwork:
external: true