services: db: image: postgres:latest command: postgres -c 'max_connections=200' environment: - POSTGRES_USER=${DB_USER} - POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_DB=${DB_NAME} volumes: - postgresql-data:/var/lib/postgresql/data restart: on-failure nginx: command: nginx -g "daemon off;" depends_on: - app - api image: nginx:alpine restart: on-failure volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf - static:/var/www/app/static ports: - "8000:8000" app: build: context: . dockerfile: Dockerfile command: bash -c 'while !