Noveramaaz/Text_classification_API_Docker
0
1# Comments are provided throughout this file to help you get started.2# If you need more help, visit the Docker Compose reference guide at3# https://docs.docker.com/go/compose-spec-reference/4 5# Here the instructions define your application as a service called "server".6# This service is built from the Dockerfile in the current directory.7# You can add other services your application may depend on here, such as a8# database or a cache. For examples, see the Awesome Compose repository:9# https://github.com/docker/awesome-compose10services:11 server:12 build:13 context: .14 ports:15 - 8000:800016 17# The commented out section below is an example of how to define a PostgreSQL18# database that your application can use. `depends_on` tells Docker Compose to19# start the database before your application. The `db-data` volume persists the20# database data between container restarts. The `db-password` secret is used21# to set the database password. You must create `db/password.txt` and add22# a password of your choosing to it before running `docker compose up`.23# depends_on:24# db:25# condition: service_healthy26# db:27# image: postgres28# restart: always29# user: postgres30# secrets:31# - db-password32# volumes:33# - db-data:/var/lib/postgresql/data34# environment:35# - POSTGRES_DB=example36# - POSTGRES_PASSWORD_FILE=/run/secrets/db-password37# expose:38# - 543239# healthcheck:40# test: [ "CMD", "pg_isready" ]41# interval: 10s42# timeout: 5s43# retries: 544# volumes:45# db-data:46# secrets:47# db-password:48# file: db/password.txt49 50 