compose.yaml 494 Bytes
version: '3.3'

services:
  web:
    build:
      context: .
      dockerfile: Dockerfile
    command: gunicorn --bind 0.0.0.0:5000 heliopropa:application
    volumes:
      - helio_cache:/cache:rw
      - speasy_cache:/root/.cache/speasy/Cache:rw
    expose:
      - 5000
  nginx:
    image: nginx
    volumes:
      - ./resources/heliopropa.nginx.docker:/etc/nginx/conf.d/default.conf
    ports:
      - "${PORT:-8080}:80"
    depends_on:
      - web

volumes:
  helio_cache:
  speasy_cache: