services: proxy-nginx: image: nginx-with-tools container_name: proxy-nginx restart: unless-stopped networks: - proxy-net environment: TZ: Europe/Warsaw ports: - "80:80" - "443:443" command: /bin/sh -c "mkdir -p /var/cache/nginx && nginx -g 'daemon off;'" volumes: # Konfiguracja Nginx - /_sd_/nginx:/etc/nginx/conf.d:ro - nginx_cache:/var/cache/nginx # Certyfikaty SSL - ${DOCKER_DATA}/letsencrypt:/letsencrypt:rw - ${DOCKER_DATA}/letsencrypt-tmp:/var/www/certbot:rw - ${DOCKER_DATA}/nginx-logs:/var/log/nginx:rw volumes: nginx_cache: driver_opts: type: tmpfs device: tmpfs o: size=3G networks: proxy-net: name: proxy-net driver: bridge