From a4ca7bc4d350c0640865b4a9243298116c5dce42 Mon Sep 17 00:00:00 2001 From: thumphrey Date: Thu, 15 Jan 2026 20:59:31 +0000 Subject: [PATCH] Upload files to "/" --- docker-compose.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2efd8b1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,42 @@ +version: "3.8" + +services: + db: + image: postgres:16-alpine + container_name: timekeeper-db + environment: + POSTGRES_DB: timekeeper + POSTGRES_USER: timekeeper + POSTGRES_PASSWORD: timekeeper_pw + PGDATA: /var/lib/postgresql/data + volumes: + # Store Postgres data in the project root (creates ./postgres-data) + - ./postgres-data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U timekeeper -d timekeeper"] + interval: 10s + timeout: 5s + retries: 10 + restart: unless-stopped + + app: + build: + context: ./backend + container_name: timekeeper-app + depends_on: + db: + condition: service_healthy + environment: + DATABASE_URL: postgresql+psycopg://timekeeper:timekeeper_pw@db:5432/timekeeper + SECRET_KEY: change-this-secret-key + DEFAULT_ADMIN_USER: Admin + DEFAULT_ADMIN_PASSWORD: 1Senior! + TZ: America/New_York + PAY_PERIOD_START_WEEKDAY: "0" + PAY_PERIOD_TYPE: BIWEEKLY + ports: + - "5070:5070" + volumes: + # Store uploaded Excel files in the project root (creates ./uploads) + - ./uploads:/app/uploads + restart: unless-stopped \ No newline at end of file