version: '3' services: app: image: kaangiray26/forte:4.3 restart: on-failure ports: - "3000:3000" depends_on: postgres: condition: service_healthy environment: port: 3000 # Set Port version: "4.3" # Set Version verbose: false # Verbose Logging custom_about: false # For your own about page hostname: localhost # Set Hostname NODE_ENV: production # Set Node Environment POSTGRES_HOST: postgres # Postgres Host/IP POSTGRES_USER: forte # Set Postgres Username POSTGRES_PASSWORD: forte # Set Postgres Password POSTGRES_PORT: 5432 # Postgres Database Port POSTGRES_DB: forte # Set Postgres Database Name volumes: - :/library - :/about postgres: image: kaangiray26/postgres:2.0 restart: on-failure environment: POSTGRES_USER: forte # Set Postgres Username POSTGRES_PASSWORD: forte # Set Postgres Password POSTGRES_DB: forte # Set Postgres Database Name volumes: - db-data:/var/lib/postgresql/data healthcheck: test: [ "CMD-SHELL", "pg_isready -U forte" ] interval: 1s timeout: 5s retries: 5 volumes: db-data: