services: api: build: context: . restart: always command: gunicorn apibase.wsgi:application --bind 0.0.0.0:5000 --workers=2 volumes: - /home//docker/council-api/staticfiles:/home/app/api/staticfiles ports: - 5000:5000 env_file: - ./.env depends_on: - db - redis db: image: postgres:15 restart: always volumes: - ./postgres_data:/var/lib/postgresql/data/ env_file: - ./.env environment: - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_DATABASE} ports: - 5232:5432 redis: image: "redis:alpine" restart: always expose: - "6379"