Logo

GitLab

Sign in

Marcell / collector

  • Back to Group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
3f3048e2e494f61327fc40c45cfe257985ef0cb0
  • collector
  • docker-compose.yml
  • Change docker-compose default configuration.
    8aba66c3
    Bartłomiej Nitoń authored
    5 years ago  
    Browse Code »
docker-compose.yml 445 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
version: '3.8'

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    command: gunicorn --chdir ./collector collector.wsgi:application --bind 0.0.0.0:8000 --keep-alive 3600 --timeout 3600
    ports:
      - 8000:8000
    env_file:
      - ./.env.app
    depends_on:
      - db
  db:
    image: postgres:12.3
    volumes:
      - data:/var/lib/postgresql/data/
    env_file:
      - ./.env.db

volumes:
  data: