services: nginx: image: nginx:alpine restart: unless-stopped volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro - ./nginx/conf.d:/etc/nginx/conf.d:ro - ./nginx/stream.d:/etc/nginx/stream.d:ro - ./ssl:/etc/nginx/certs:ro - ./html:/usr/share/nginx/html:ro ports: - "80:80" - "443:443" - "5432:5432" networks: - frontend networks: frontend: driver: bridge