services: pgn_api: build: context: . image: pgn_api container_name: pgn_api_8888 volumes: - ./:/workspace ports: - "8888:8888" env_file: - .env environment: - TZ=Asia/Seoul stdin_open: true restart: always tty: true networks: - pgn_net - monitor_net depends_on: pgn_redis: condition: service_healthy healthcheck: test: [ "CMD-SHELL", "curl -f http://localhost:8888/health/API && curl -f http://localhost:8888/health/Redis && curl -f http://localhost:8888/health/MinIO", ] interval: 60s timeout: 5s retries: 3 start_period: 10s pgn_redis: image: redis:7-alpine container_name: pgn_redis command: [ "redis-server", "--maxmemory", "256mb", "--maxmemory-policy", "allkeys-lru", ] ports: - "6382:6379" restart: always networks: - pgn_net healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 networks: monitor_net: driver: bridge pgn_net: external: true