version: "3.9" services: backend: build: ./backend container_name: ap-backend volumes: - ./data:/data expose: - "8000" nginx: image: nginx:stable container_name: ap-nginx ports: - "9090:80" volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro - ./nginx/htpasswd:/etc/nginx/htpasswd:ro - ./frontend:/usr/share/nginx/html:ro depends_on: - backend