File size: 647 Bytes
d95cbea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
28
29
version: '3.8'
services:
  app:
    container_name: summary-app
    restart: unless-stopped
    # env_file:
    #   - .env
    # environment:
    #   PGHOST: 'db'
    #   PGDATABASE: ${DATABASE_NAME}
    #   PGUSER: ${DATABASE_USER}
    #   PGPASSWORD: ${DATABASE_PASS}
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8000:8000"
    expose:
      - 8000
    healthcheck:
      test: curl --fail -s http://localhost:8000/ || exit 1
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 10s
    command: ["uvicorn","main:app","--proxy-headers","--host","0.0.0.0","--port","8000","--workers","3"]