services: proxy-nginx: image: nginx-with-tools container_name: proxy-nginx restart: unless-stopped networks: - proxy-net environment: TZ: Europe/Warsaw NGINX_ENVSUBST_TEMPLATE_DIR: /etc/nginx/templates NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx/conf.d ports: - "80:80" - "443:443" volumes: # Konfiguracja Nginx - apps-data:/etc/nginx/conf.d:ro - nginx_cache:/var/cache/nginx_cache # 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 apps-data: external: true networks: proxy-net: name: proxy-net driver: bridge