services: postgres: image: postgres:17 environment: POSTGRES_DB: celestialarchives POSTGRES_USER: celestial POSTGRES_PASSWORD: celestial_password volumes: - postgres_data:/var/lib/postgresql/data ports: - "5432:5432" backend: build: context: ./backend environment: DATABASE_URL: jdbc:postgresql://postgres:5432/celestialarchives DATABASE_USERNAME: celestial DATABASE_PASSWORD: celestial_password depends_on: - postgres ports: - "8080:8080" frontend: build: context: ./frontend depends_on: - backend ports: - "3000:80" volumes: postgres_data: