Files
casa/services/nginx/docker-compose.yaml
Márcio Fernandes 3c0dd3b01f
All checks were successful
Portainer stack nginx / deploy (push) Successful in 5s
Portainer stack wyoming / deploy (push) Successful in 5s
Portainer stack zigbee2mqtt / deploy (push) Successful in 5s
CI/CD
2024-08-26 20:39:12 +01:00

29 lines
581 B
YAML

version: '3'
services:
nginx:
build:
context: ./docker
pull_policy: build
image: homesrv/nginx:latest
volumes:
- etc_ssl:/etc/ssl
ports:
- 443:443
- 80:80
networks:
- public
- private
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
restart: unless-stopped
volumes:
nginx-conf.d:
etc_ssl:
name: nginx_etc_ssl
networks:
public:
name: reverseproxy_public
external: true
private:
name: reverseproxy_private
external: true