services: webapp: build: context: . dockerfile: ./Dockerfile # command: gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000 # command: sh -c "gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000" volumes: - .:/app - static_volume:/app/static expose: - "8000" networks: - freekake_net nginx: image: nginx:1.28-bookworm restart: always ports: - "80:80" volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf - static_volume:/static - ./media:/media depends_on: - webapp networks: - freekake_net volumes: static_volume: networks: freekake_net: