/home/bdqbpbxa/dev-subdomains/admin.pixory.goodface.com.ua/docker-compose.yaml
version: "3.8"

services:
  app:
    image: app:local
    build:
      context: .
      dockerfile: ./Dockerfile
    container_name: app-local
    ports:
      - "1337:1337"
    env_file:
      - .env
    depends_on:
      - db


  db:
    image: postgres:latest
    environment:
      POSTGRES_DB: strapi
      POSTGRES_USER: strapi
      POSTGRES_PASSWORD: strapi
    ports:
      - "5432:5432"
    volumes:
      - db_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U strapi -d strapi -h 127.0.0.1"]
      interval: 5s
      timeout: 3s
      retries: 10

volumes:
  db_data:
    driver: local