version: '3.8' services: db: image: postgres:15 restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: whats_the_point volumes: - db_data:/var/lib/postgresql/data ports: - "5432:5432" backend: build: ./backend restart: unless-stopped environment: PORT: 4000 JWT_SECRET: your_jwt_secret DATABASE_URL: postgres://postgres:postgres@db:5432/whats_the_point depends_on: - db ports: - "4000:4000" volumes: - ./backend:/app frontend: build: ./frontend restart: unless-stopped environment: VITE_API_URL: http://localhost:4000 depends_on: - backend ports: - "5173:5173" volumes: - ./frontend:/app volumes: db_data: