CoolFace
Apppublic

LVKinyanjui/QueryYourDocs

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
compose.yaml50 linesDownload Raw Back to root
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    volumes:15      - .:/app16    ports:17      - 7860:800018# The commented out section below is an example of how to define a PostgreSQL19# database that your application can use. `depends_on` tells Docker Compose to20# start the database before your application. The `db-data` volume persists the21# database data between container restarts. The `db-password` secret is used22# to set the database password. You must create `db/password.txt` and add23# a password of your choosing to it before running `docker compose up`.24#     depends_on:25#       db:26#         condition: service_healthy27#   db:28#     image: postgres29#     restart: always30#     user: postgres31#     secrets:32#       - db-password33#     volumes:34#       - db-data:/var/lib/postgresql/data35#     environment:36#       - POSTGRES_DB=example37#       - POSTGRES_PASSWORD_FILE=/run/secrets/db-password38#     expose:39#       - 543240#     healthcheck:41#       test: [ "CMD", "pg_isready" ]42#       interval: 10s43#       timeout: 5s44#       retries: 545# volumes:46#   db-data:47# secrets:48#   db-password:49#     file: db/password.txt50