File size: 442 Bytes
43fe182
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
services:
  webserver:
    image: hhschu/elna
    pull_policy: always
    security_opt:
      - "no-new-privileges:true"
    cap_drop:
      - ALL
    env_file:
      - .env
    command:
      - fastapi
      - run
      - --port=80
      - app/main.py
    restart: "unless-stopped"
    healthcheck:
      test: ["CMD-SHELL", "curl -f http://localhost:80/health || exit 1"]
      interval: 5m
      start_period: 30s
      start_interval: 5s