version: '3.8' volumes: postgres-data: services: app: build: context: . dockerfile: Dockerfile ports: - 8989:8989 depends_on: - db env_file: - .env db: image: postgres:15-alpine3.17 restart: unless-stopped volumes: - postgres-data:/var/lib/postgresql/data env_file: - .env