services: postgres: image: postgres:16 container_name: postgres_db restart: unless-stopped env_file: - .env ports: - "5432:5432" volumes: - ./server/db/postgres_vol:/var/lib/postgresql/data - ./server/db/schema.sql:/docker-entrypoint-initdb.d/schema.sql redis: image: redis:7 container_name: redis ports: - "6379:6379" volumes: postgres_data: