services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: ${POSTGRES_USER:-artex} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env} POSTGRES_DB: ${POSTGRES_DB:-artex} volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-artex} -d ${POSTGRES_DB:-artex}"] interval: 5s timeout: 3s retries: 10 restart: unless-stopped artex: image: ghcr.io/hypnguyen1209/v-artex:${ARTEX_TAG:-latest} depends_on: postgres: condition: service_healthy environment: ARTEX_PG_DSN: postgres://${POSTGRES_USER:-artex}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-artex}?sslmode=disable ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-} OPENAI_API_KEY: ${OPENAI_API_KEY:-} ARTEX_LLM_PROVIDER: ${ARTEX_LLM_PROVIDER:-} ARTEX_LLM_MODEL: ${ARTEX_LLM_MODEL:-} ARTEX_LLM_BASE_URL: ${ARTEX_LLM_BASE_URL:-} ARTEX_LLM_PROXY: ${ARTEX_LLM_PROXY:-} ARTEX_SETUP_TOKEN: ${ARTEX_SETUP_TOKEN:-} ARTEX_ADMIN_PASSWORD: ${ARTEX_ADMIN_PASSWORD:-} ARTEX_CORS_ORIGINS: ${ARTEX_CORS_ORIGINS:-} ARTEX_JWT_KEY_DIR: /app/auth ports: - "${ARTEX_BIND:-127.0.0.1}:8787:8787" - "127.0.0.1:8788:8788" volumes: # Bind the data workspace (SQLite, etc.) to data/ in the project root # for direct inspection/backups on the host and persistence across container recreation. - ./data:/app/data # Persist the JWT key separately from the browsable workspace. - jwtkeys:/app/auth # Mount skills from the project root over the image's /app/skills. # The container reads the host files, so skill changes need no image rebuild. - ./skills:/app/skills restart: unless-stopped volumes: pgdata: jwtkeys: