CoolFace
Apppublic

tokyo-boy/inventory-backend

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
docker-compose.yml73 linesDownload Raw Back to root
1version: "3.9"2 3services:4  postgres:5    image: postgres:16-alpine6    container_name: inventory_postgres7 8    restart: unless-stopped9 10    environment:11      POSTGRES_DB: ${POSTGRES_DB}12      POSTGRES_USER: ${POSTGRES_USER}13      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}14 15    volumes:16      - postgres_data:/var/lib/postgresql/data17 18    ports:19      - "5432:5432"20 21    healthcheck:22      test:23        [24          "CMD-SHELL",25          "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"26        ]27      interval: 10s28      timeout: 5s29      retries: 530 31  backend:32    build:33      context: ./backend34      dockerfile: Dockerfile35 36    container_name: inventory_backend37 38    restart: unless-stopped39 40    env_file:41      - .env42 43    depends_on:44      postgres:45        condition: service_healthy46 47    ports:48      - "8000:8000"49 50    command: >51      sh -c "52      alembic upgrade head &&53      python -m app.db.seed &&54      uvicorn app.main:app --host 0.0.0.0 --port 800055      "56 57  frontend:58    build:59      context: ./frontend60      dockerfile: Dockerfile61 62    container_name: inventory_frontend63 64    restart: unless-stopped65 66    depends_on:67      - backend68 69    ports:70      - "5173:80"71 72volumes:73  postgres_data: