summaryrefslogtreecommitdiff
path: root/docker-compose.yaml
blob: a72cee72194395f505543d3406c39fbfb25d3a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: "3.5"

services:
  journal_api:
    container_name: journal_api
    image: mppowers/journal_api
    restart: always
    env_file:
      - env
    volumes:
      - ./media:/media
      - static:/static
      - ./data:/data
    command: ["gunicorn", "--max-requests", "1000", "--max-requests-jitter", "50", "journal.wsgi", "--bind=0.0.0.0:80", "--capture-output", "--access-logfile" ,"-" ]

  static_files:
    image: nginx
    restart: always
    volumes:
      - static:/usr/share/nginx/html/static

volumes:
  static: