version: "3.9" services: postgres: image: 'postgres:14' restart: always environment: - POSTGRES_HOST_AUTH_METHOD=trust ports: - '${PG_PORT}:5432' redis: image: 'redis:6' restart: always ports: - '${REDIS_PORT}:6379' networks: default: name: 'blog-dev' driver: bridge