services:
  dwz-server:
    container_name: ${CONTAINER_NAME}
    image: docker.cnb.cool/mliev/open/dwz-server:v2.12.0
    restart: always
    networks:
      - 1panel-network
    ports:
      - ${PANEL_APP_PORT_HTTP}:8080
    volumes:
      - "./config/:/app/config/"
    environment:
      - TZ=${TIME_ZONE}
      - DATABASE_DRIVER=${PANEL_DB_TYPE}
      - DATABASE_HOST=${PANEL_DB_HOST}
      - DATABASE_PORT=${PANEL_DB_PORT}
      - DATABASE_DBNAME=${PANEL_DB_NAME}
      - DATABASE_USERNAME=${PANEL_DB_USER}
      - DATABASE_PASSWORD=${PANEL_DB_USER_PASSWORD}
      - REDIS_HOST=${PANEL_REDIS_HOST}
      - REDIS_PORT=6379
      - REDIS_PASSWORD=${PANEL_REDIS_ROOT_PASSWORD}
      - REDIS_DB=0
      - GIN_MODE=release
    labels:
      createdBy: "Apps"

networks:
  1panel-network:
    external: true
